From 973ae30e7c4f7a1afb385dd3d8eeea178f981445 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 13:24:39 +0200 Subject: fix deprecated prototypes --- src/qmail-qmqpd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/qmail-qmqpd.c') 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; -- cgit v1.2.3