diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
commit | 973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch) | |
tree | 1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/spawn.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
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; |