diff options
| -rw-r--r-- | alloc.c | 3 | ||||
| -rw-r--r-- | conf-cc | 2 | ||||
| -rw-r--r-- | qmail-pw2u.c | 1 | ||||
| -rw-r--r-- | qmail-qmtpd.c | 1 | ||||
| -rw-r--r-- | qsutil.c | 2 | ||||
| -rw-r--r-- | realrcptto.c | 5 |
6 files changed, 8 insertions, 6 deletions
| @@ -1,7 +1,6 @@ | |||
| 1 | #include "alloc.h" | 1 | #include "alloc.h" |
| 2 | #include "error.h" | 2 | #include "error.h" |
| 3 | extern char *malloc(); | 3 | #include <stdlib.h> |
| 4 | extern void free(); | ||
| 5 | 4 | ||
| 6 | #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ | 5 | #define ALIGNMENT 16 /* XXX: assuming that this alignment is enough */ |
| 7 | #define SPACE 4096 /* must be multiple of ALIGNMENT */ | 6 | #define SPACE 4096 /* must be multiple of ALIGNMENT */ |
| @@ -1,3 +1,3 @@ | |||
| 1 | gcc -O2 -pipe -DTLS | 1 | gcc -O2 -pipe -DTLS -fno-builtin-puts -fno-builtin-log2 |
| 2 | 2 | ||
| 3 | This will be used to compile .c files. | 3 | This will be used to compile .c files. |
diff --git a/qmail-pw2u.c b/qmail-pw2u.c index 4146067..f068ab1 100644 --- a/qmail-pw2u.c +++ b/qmail-pw2u.c | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include "auto_break.h" | 16 | #include "auto_break.h" |
| 17 | #include "auto_qmail.h" | 17 | #include "auto_qmail.h" |
| 18 | #include "auto_usera.h" | 18 | #include "auto_usera.h" |
| 19 | #include "exit.h" | ||
| 19 | 20 | ||
| 20 | void die_chdir() | 21 | void die_chdir() |
| 21 | { | 22 | { |
diff --git a/qmail-qmtpd.c b/qmail-qmtpd.c index d772206..85a0f99 100644 --- a/qmail-qmtpd.c +++ b/qmail-qmtpd.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #include "readwrite.h" | 11 | #include "readwrite.h" |
| 12 | #include "control.h" | 12 | #include "control.h" |
| 13 | #include "received.h" | 13 | #include "received.h" |
| 14 | #include "exit.h" | ||
| 14 | 15 | ||
| 15 | void badproto() { _exit(100); } | 16 | void badproto() { _exit(100); } |
| 16 | void resources() { _exit(111); } | 17 | void resources() { _exit(111); } |
| @@ -6,7 +6,7 @@ | |||
| 6 | static stralloc foo = {0}; | 6 | static stralloc foo = {0}; |
| 7 | 7 | ||
| 8 | static char errbuf[1]; | 8 | static char errbuf[1]; |
| 9 | static struct substdio sserr = SUBSTDIO_FDBUF(write,0,errbuf,1); | 9 | static substdio sserr = SUBSTDIO_FDBUF(write,0,errbuf,1); |
| 10 | 10 | ||
| 11 | void logsa(sa) stralloc *sa; { | 11 | void logsa(sa) stralloc *sa; { |
| 12 | substdio_putflush(&sserr,sa->s,sa->len); } | 12 | substdio_putflush(&sserr,sa->s,sa->len); } |
diff --git a/realrcptto.c b/realrcptto.c index 7ec331a..98dc6e6 100644 --- a/realrcptto.c +++ b/realrcptto.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #include <sys/types.h> | 1 | #include <sys/types.h> |
| 2 | #include <sys/stat.h> | 2 | #include <sys/stat.h> |
| 3 | #include <unistd.h> | 3 | #include <stdlib.h> |
| 4 | #include <pwd.h> | 4 | #include <pwd.h> |
| 5 | #include "auto_break.h" | 5 | #include "auto_break.h" |
| 6 | #include "auto_usera.h" | 6 | #include "auto_usera.h" |
| @@ -17,6 +17,7 @@ | |||
| 17 | #include "substdio.h" | 17 | #include "substdio.h" |
| 18 | #include "env.h" | 18 | #include "env.h" |
| 19 | #include "slurpclose.h" | 19 | #include "slurpclose.h" |
| 20 | #include "readwrite.h" | ||
| 20 | 21 | ||
| 21 | extern void die_nomem(); | 22 | extern void die_nomem(); |
| 22 | extern void die_control(); | 23 | extern void die_control(); |
| @@ -37,7 +38,7 @@ static char *local; | |||
| 37 | static struct passwd *pw; | 38 | static struct passwd *pw; |
| 38 | 39 | ||
| 39 | static char errbuf[128]; | 40 | static char errbuf[128]; |
| 40 | static struct substdio sserr = SUBSTDIO_FDBUF(write,2,errbuf,sizeof errbuf); | 41 | static substdio sserr = SUBSTDIO_FDBUF(write,2,errbuf,sizeof errbuf); |
| 41 | 42 | ||
| 42 | static char pidbuf[64]; | 43 | static char pidbuf[64]; |
| 43 | static char remoteipbuf[64]=" "; | 44 | static char remoteipbuf[64]=" "; |
