diff options
| author | Manuel Mausz <manuel@mausz.at> | 2019-06-11 15:28:27 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2019-06-11 15:29:11 +0200 |
| commit | 692760720b197b46e8e4268bede8cad6f90399aa (patch) | |
| tree | 0d0d5f45759b83e15d6668357f9482dca236880b /qmail-remote.c | |
| parent | 54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff) | |
| download | qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2 qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip | |
Fix compile warnings...
Diffstat (limited to 'qmail-remote.c')
| -rw-r--r-- | qmail-remote.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qmail-remote.c b/qmail-remote.c index 58437da..0e2377e 100644 --- a/qmail-remote.c +++ b/qmail-remote.c | |||
| @@ -3,6 +3,7 @@ | |||
| 3 | #include <sys/socket.h> | 3 | #include <sys/socket.h> |
| 4 | #include <netinet/in.h> | 4 | #include <netinet/in.h> |
| 5 | #include <arpa/inet.h> | 5 | #include <arpa/inet.h> |
| 6 | #include <unistd.h> | ||
| 6 | #include "sig.h" | 7 | #include "sig.h" |
| 7 | #include "stralloc.h" | 8 | #include "stralloc.h" |
| 8 | #include "substdio.h" | 9 | #include "substdio.h" |
| @@ -26,7 +27,6 @@ | |||
| 26 | #include "exit.h" | 27 | #include "exit.h" |
| 27 | #include "constmap.h" | 28 | #include "constmap.h" |
| 28 | #include "tcpto.h" | 29 | #include "tcpto.h" |
| 29 | #include "readwrite.h" | ||
| 30 | #include "timeoutconn.h" | 30 | #include "timeoutconn.h" |
| 31 | #include "timeoutread.h" | 31 | #include "timeoutread.h" |
| 32 | #include "timeoutwrite.h" | 32 | #include "timeoutwrite.h" |
| @@ -161,9 +161,9 @@ int timeoutconnect = 60; | |||
| 161 | int smtpfd; | 161 | int smtpfd; |
| 162 | int timeout = 1200; | 162 | int timeout = 1200; |
| 163 | 163 | ||
| 164 | int saferead(fd,buf,len) int fd; char *buf; int len; | 164 | ssize_t saferead(fd,buf,len) int fd; char *buf; int len; |
| 165 | { | 165 | { |
| 166 | int r; | 166 | ssize_t r; |
| 167 | #ifdef TLS | 167 | #ifdef TLS |
| 168 | if (ssl) { | 168 | if (ssl) { |
| 169 | r = ssl_timeoutread(timeout, smtpfd, smtpfd, ssl, buf, len); | 169 | r = ssl_timeoutread(timeout, smtpfd, smtpfd, ssl, buf, len); |
| @@ -174,9 +174,9 @@ int saferead(fd,buf,len) int fd; char *buf; int len; | |||
| 174 | if (r <= 0) dropped(); | 174 | if (r <= 0) dropped(); |
| 175 | return r; | 175 | return r; |
| 176 | } | 176 | } |
| 177 | int safewrite(fd,buf,len) int fd; char *buf; int len; | 177 | ssize_t safewrite(fd,buf,len) int fd; char *buf; int len; |
| 178 | { | 178 | { |
| 179 | int r; | 179 | ssize_t r; |
| 180 | #ifdef TLS | 180 | #ifdef TLS |
| 181 | if (ssl) { | 181 | if (ssl) { |
| 182 | r = ssl_timeoutwrite(timeout, smtpfd, smtpfd, ssl, buf, len); | 182 | r = ssl_timeoutwrite(timeout, smtpfd, smtpfd, ssl, buf, len); |
