summaryrefslogtreecommitdiffstats
path: root/qmail-smtpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmail-smtpd.c')
-rw-r--r--qmail-smtpd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/qmail-smtpd.c b/qmail-smtpd.c
index 3352911..38c5929 100644
--- a/qmail-smtpd.c
+++ b/qmail-smtpd.c
@@ -1,6 +1,7 @@
1#include <arpa/inet.h> 1#include <arpa/inet.h>
2#include <sys/time.h>
3#include <unistd.h>
2#include "sig.h" 4#include "sig.h"
3#include "readwrite.h"
4#include "stralloc.h" 5#include "stralloc.h"
5#include "substdio.h" 6#include "substdio.h"
6#include "alloc.h" 7#include "alloc.h"
@@ -86,9 +87,9 @@ int smtputf8 = 0;
86int flagauth = 0; 87int flagauth = 0;
87char **childargs; 88char **childargs;
88 89
89int safewrite(fd,buf,len) int fd; char *buf; int len; 90ssize_t safewrite(fd,buf,len) int fd; char *buf; int len;
90{ 91{
91 int r; 92 ssize_t r;
92#ifdef TLS 93#ifdef TLS
93 if (ssl && fd == ssl_wfd) 94 if (ssl && fd == ssl_wfd)
94 r = ssl_timeoutwrite(timeout, ssl_rfd, ssl_wfd, ssl, buf, len); 95 r = ssl_timeoutwrite(timeout, ssl_rfd, ssl_wfd, ssl, buf, len);
@@ -796,9 +797,9 @@ void smtp_rcpt(arg) char *arg; {
796} 797}
797 798
798 799
799int saferead(fd,buf,len) int fd; char *buf; int len; 800ssize_t saferead(fd,buf,len) int fd; char *buf; int len;
800{ 801{
801 int r; 802 ssize_t r;
802 flush(); 803 flush();
803#ifdef TLS 804#ifdef TLS
804 if (ssl && fd == ssl_rfd) 805 if (ssl && fd == ssl_rfd)