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/qmail-qmqpd.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/qmail-qmqpd.c')
-rw-r--r-- | src/qmail-qmqpd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qmail-qmqpd.c b/src/qmail-qmqpd.c index 7aa5e73..9a81fb1 100644 --- a/src/qmail-qmqpd.c +++ b/src/qmail-qmqpd.c @@ -22,12 +22,12 @@ #define PORT_QMQP "628" -void resources() +static void resources() { _exit(111); } -ssize_t safewrite(int fd, char *buf, int len) +static ssize_t safewrite(int fd, char *buf, int len) { int r; r = write(fd, buf, len); @@ -35,7 +35,7 @@ ssize_t safewrite(int fd, char *buf, int len) return r; } -ssize_t saferead(int fd, char *buf, int len) +static ssize_t saferead(int fd, char *buf, int len) { int r; r = read(fd, buf, len); @@ -50,13 +50,13 @@ buffer bo = BUFFER_INIT(safewrite, 1, outbuf, sizeof(outbuf)); unsigned long bytesleft = 100; -void getbyte(char *ch) +static void getbyte(char *ch) { if (!bytesleft--) _exit(100); buffer_get(&bi, ch, 1); } -unsigned long getlen() +static unsigned long getlen() { unsigned long len = 0; char ch; @@ -69,7 +69,7 @@ unsigned long getlen() } } -void getcomma() +static void getcomma() { char ch; getbyte(&ch); @@ -78,7 +78,7 @@ void getcomma() struct qmail qq; -void identify() +static void identify() { char *remotehost; char *remoteinfo; @@ -110,7 +110,7 @@ void identify() char buf[1000]; char strnum[FMT_ULONG]; -int getbuf() +static int getbuf() { unsigned long len; int i; |