diff options
Diffstat (limited to 'src/spawn.c')
-rw-r--r-- | src/spawn.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/spawn.c b/src/spawn.c index 2ad7d13..59ed63e 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -1,3 +1,5 @@ +#include "spawn.h" + #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> @@ -23,11 +25,6 @@ #include "auto_uids.h" #endif -extern int truncreport; -extern int spawn(); -extern void report(); -extern void initialize(); - struct delivery { int used; int fdin; /* pipe input */ @@ -39,7 +36,7 @@ struct delivery { struct delivery *d; -void sigchld() +static void sigchld() { int wstat; int pid; @@ -58,7 +55,7 @@ void sigchld() int flagwriting = 1; -ssize_t okwrite(int fd, char *buf, int n) +static ssize_t okwrite(int fd, char *buf, int n) { int w; if (!flagwriting) return n; @@ -81,7 +78,7 @@ stralloc messid = {0}; stralloc sender = {0}; stralloc recip = {0}; -void err(char *s) +static void err(char *s) { char ch; @@ -91,7 +88,7 @@ void err(char *s) buffer_putflush(&bo, "", 1); } -void docmd() +static void docmd() { int f; int i; @@ -205,7 +202,7 @@ void docmd() char cmdbuf[1024]; -void getcmd() +static void getcmd() { int i; int r; |