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-qmqpc.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/qmail-qmqpc.c')
-rw-r--r-- | src/qmail-qmqpc.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/qmail-qmqpc.c b/src/qmail-qmqpc.c index 7ee80d7..ad14ce3 100644 --- a/src/qmail-qmqpc.c +++ b/src/qmail-qmqpc.c @@ -29,53 +29,53 @@ #define PORT_QMQP 628 -void die_success() +static void die_success() { _exit(0); } -void die_perm() +static void die_perm() { _exit(31); } -void nomem() +static void nomem() { _exit(51); } -void die_read() +static void die_read() { if (errno == ENOMEM) nomem(); _exit(54); } -void die_control() +static void die_control() { _exit(55); } -void die_socket() +static void die_socket() { _exit(56); } -void die_home() +static void die_home() { _exit(61); } -void die_temp() +static void die_temp() { _exit(71); } -void die_conn() +static void die_conn() { _exit(74); } -void die_format() +static void die_format() { _exit(91); } @@ -83,7 +83,7 @@ void die_format() int lasterror = 55; int qmqpfd; -ssize_t saferead(int fd, char *buf, int len) +static ssize_t saferead(int fd, char *buf, int len) { int r; r = timeoutread(60, qmqpfd, buf, len); @@ -91,7 +91,7 @@ ssize_t saferead(int fd, char *buf, int len) return r; } -ssize_t safewrite(int fd, char *buf, int len) +static ssize_t safewrite(int fd, char *buf, int len) { int r; r = timeoutwrite(60, qmqpfd, buf, len); @@ -112,7 +112,7 @@ stralloc aftermessage = {0}; char strnum[FMT_ULONG]; stralloc line = {0}; -void getmess() +static void getmess() { int match; @@ -148,7 +148,7 @@ void getmess() } } -void doit(char *server) +static void doit(char *server) { struct ip4_address ip4s; struct ip6_address ip6s; |