summaryrefslogtreecommitdiff
path: root/src/qmail-smtpam.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmail-smtpam.c')
-rw-r--r--src/qmail-smtpam.c6
1 files changed, 3 insertions, 3 deletions
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];