From e6e9663d40f7aab9e1982dddcaa11386551ad182 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Wed, 3 Jul 2024 22:05:52 +0200 Subject: fix issues preventing compilation --- src/qmail-smtpam.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qmail-smtpam.c') diff --git a/src/qmail-smtpam.c b/src/qmail-smtpam.c index 77f0718..75c0c65 100644 --- a/src/qmail-smtpam.c +++ b/src/qmail-smtpam.c @@ -213,9 +213,9 @@ void dropped() zerodie(); } -int timeoutconnect = 60; +long timeoutconnect = 60; int smtpfd; -int timeout = 1200; +long timeout = 1200; ssize_t saferead(int fd, char *buf, int len) { @@ -661,7 +661,7 @@ int main(int argc, char **argv) } } - r = timeoutconn(smtpfd, &ip.ix[i].addr, (unsigned int)port, timeoutconnect, ifidx); + r = timeoutconn(smtpfd, ip.ix[i].addr.ip4.d, (unsigned int)port, timeoutconnect, ifidx); if (r == 0) { tcpto_err(&ip.ix[i], 0); partner = ip.ix[i]; -- cgit v1.2.3