summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alloc.c3
-rw-r--r--conf-cc2
-rw-r--r--qmail-pw2u.c1
-rw-r--r--qmail-qmtpd.c1
-rw-r--r--qsutil.c2
-rw-r--r--realrcptto.c5
6 files changed, 8 insertions, 6 deletions
diff --git a/alloc.c b/alloc.c
index c661453..48a109b 100644
--- a/alloc.c
+++ b/alloc.c
@@ -1,7 +1,6 @@
1#include "alloc.h" 1#include "alloc.h"
2#include "error.h" 2#include "error.h"
3extern char *malloc(); 3#include <stdlib.h>
4extern 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 */
diff --git a/conf-cc b/conf-cc
index d2d73ab..245d8c5 100644
--- a/conf-cc
+++ b/conf-cc
@@ -1,3 +1,3 @@
1gcc -O2 -pipe -DTLS 1gcc -O2 -pipe -DTLS -fno-builtin-puts -fno-builtin-log2
2 2
3This will be used to compile .c files. 3This 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
20void die_chdir() 21void 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
15void badproto() { _exit(100); } 16void badproto() { _exit(100); }
16void resources() { _exit(111); } 17void resources() { _exit(111); }
diff --git a/qsutil.c b/qsutil.c
index 80c619d..a769829 100644
--- a/qsutil.c
+++ b/qsutil.c
@@ -6,7 +6,7 @@
6static stralloc foo = {0}; 6static stralloc foo = {0};
7 7
8static char errbuf[1]; 8static char errbuf[1];
9static struct substdio sserr = SUBSTDIO_FDBUF(write,0,errbuf,1); 9static substdio sserr = SUBSTDIO_FDBUF(write,0,errbuf,1);
10 10
11void logsa(sa) stralloc *sa; { 11void 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
21extern void die_nomem(); 22extern void die_nomem();
22extern void die_control(); 23extern void die_control();
@@ -37,7 +38,7 @@ static char *local;
37static struct passwd *pw; 38static struct passwd *pw;
38 39
39static char errbuf[128]; 40static char errbuf[128];
40static struct substdio sserr = SUBSTDIO_FDBUF(write,2,errbuf,sizeof errbuf); 41static substdio sserr = SUBSTDIO_FDBUF(write,2,errbuf,sizeof errbuf);
41 42
42static char pidbuf[64]; 43static char pidbuf[64];
43static char remoteipbuf[64]=" "; 44static char remoteipbuf[64]=" ";