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-qmqpd.c | |
| parent | 54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff) | |
| download | qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2 qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip | |
Fix compile warnings...
Diffstat (limited to 'qmail-qmqpd.c')
| -rw-r--r-- | qmail-qmqpd.c | 15 |
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 | ||
| 12 | void resources() { _exit(111); } | 14 | void resources() { _exit(111); } |
| 13 | 15 | ||
| 14 | int safewrite(fd,buf,len) int fd; char *buf; int len; | 16 | ssize_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 | } |
| 21 | int saferead(fd,buf,len) int fd; char *buf; int len; | 23 | ssize_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 | ||
| 106 | int flagok = 1; | 108 | int flagok = 1; |
| 107 | 109 | ||
| 108 | main() | 110 | int 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 | } |
