summaryrefslogtreecommitdiffstats
path: root/qmail-qmqpd.c
diff options
context:
space:
mode:
authorManuel Mausz <manuel@mausz.at>2019-06-11 15:28:27 +0200
committermanuel <manuel@mausz.at>2019-06-11 15:29:11 +0200
commit692760720b197b46e8e4268bede8cad6f90399aa (patch)
tree0d0d5f45759b83e15d6668357f9482dca236880b /qmail-qmqpd.c
parent54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff)
downloadqmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz
qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2
qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip
Fix compile warnings...
Diffstat (limited to 'qmail-qmqpd.c')
-rw-r--r--qmail-qmqpd.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/qmail-qmqpd.c b/qmail-qmqpd.c
index 86cb284..8726ab0 100644
--- a/qmail-qmqpd.c
+++ b/qmail-qmqpd.c
@@ -1,26 +1,28 @@
1#include <unistd.h>
1#include "auto_qmail.h" 2#include "auto_qmail.h"
2#include "qmail.h" 3#include "qmail.h"
3#include "received.h" 4#include "received.h"
4#include "sig.h" 5#include "sig.h"
5#include "substdio.h" 6#include "substdio.h"
6#include "readwrite.h"
7#include "exit.h" 7#include "exit.h"
8#include "now.h" 8#include "now.h"
9#include "fmt.h" 9#include "fmt.h"
10#include "env.h" 10#include "env.h"
11#include "byte.h"
12#include "str.h"
11 13
12void resources() { _exit(111); } 14void resources() { _exit(111); }
13 15
14int safewrite(fd,buf,len) int fd; char *buf; int len; 16ssize_t safewrite(fd,buf,len) int fd; char *buf; int len;
15{ 17{
16 int r; 18 ssize_t r;
17 r = write(fd,buf,len); 19 r = write(fd,buf,len);
18 if (r <= 0) _exit(0); 20 if (r <= 0) _exit(0);
19 return r; 21 return r;
20} 22}
21int saferead(fd,buf,len) int fd; char *buf; int len; 23ssize_t saferead(fd,buf,len) int fd; char *buf; int len;
22{ 24{
23 int r; 25 ssize_t r;
24 r = read(fd,buf,len); 26 r = read(fd,buf,len);
25 if (r <= 0) _exit(0); 27 if (r <= 0) _exit(0);
26 return r; 28 return r;
@@ -105,7 +107,7 @@ int getbuf()
105 107
106int flagok = 1; 108int flagok = 1;
107 109
108main() 110int main()
109{ 111{
110 char *result; 112 char *result;
111 unsigned long qp; 113 unsigned long qp;
@@ -171,4 +173,5 @@ main()
171 substdio_puts(&ssout,","); 173 substdio_puts(&ssout,",");
172 substdio_flush(&ssout); 174 substdio_flush(&ssout);
173 _exit(0); 175 _exit(0);
176 return 0;
174} 177}