diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-02-13 03:56:13 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-02-13 03:56:13 +0000 |
| commit | 83a388d5d8230dd6c15ecea31cf89f74248bc286 (patch) | |
| tree | 0193a4c41614a481b373385aad6864d043f3c22d /src/qmail-remote/qmailr.h | |
| parent | f38c40f9bb3033dce22b4035df87695440660e69 (diff) | |
| download | smtpd-starttls-proxy-83a388d5d8230dd6c15ecea31cf89f74248bc286.tar.gz | |
Treat 0 timeouts as infinite
Diffstat (limited to 'src/qmail-remote/qmailr.h')
| -rw-r--r-- | src/qmail-remote/qmailr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmail-remote/qmailr.h b/src/qmail-remote/qmailr.h index 451824a..61bd08e 100644 --- a/src/qmail-remote/qmailr.h +++ b/src/qmail-remote/qmailr.h @@ -35,6 +35,8 @@ extern void qmailr_dievsys (char const *const *, unsigned int) gccattr_noreturn /* qmailr_utils */ +#define qdeadline(d, t) do { if (t) tain_addsec_g(d, t) ; else tain_add_g(d, &tain_infinite_relative) ; } while (0) + extern int qmailr_memcmp4 (void const *, void const *) ; extern int qmailr_memcmp16 (void const *, void const *) ; extern int qmailr_box_encode (char const *, size_t, stralloc *) ; |
