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-local.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/qmail-local.c') diff --git a/src/qmail-local.c b/src/qmail-local.c index bbef6f3..ec22fa2 100644 --- a/src/qmail-local.c +++ b/src/qmail-local.c @@ -45,42 +45,42 @@ #define WHO "qmail-local" -void usage() +static void usage() { logmsg(WHO, 100, USAGE, "qmail-local [ -nN ] user homedir local dash ext domain sender aliasempty"); } -void temp_nomem() +static void temp_nomem() { logmsg(WHO, 111, FATAL, "Out of memory. (#4.3.0)"); } -void temp_rewind() +static void temp_rewind() { logmsg(WHO, 111, FATAL, "Unable to rewind message. (#4.3.0)"); } -void temp_childcrashed() +static void temp_childcrashed() { logmsg(WHO, 111, FATAL, "Aack, child crashed. (#4.3.0)"); } -void temp_fork() +static void temp_fork() { logmsg(WHO, 111, FATAL, B("Unable to fork: ", error_str(errno), ". (#4.3.0)")); } -void temp_read() +static void temp_read() { logmsg(WHO, 111, ERROR, B("Unable to read message: ", error_str(errno), ". (#4.3.0)")); } -void temp_slowlock() +static void temp_slowlock() { logmsg(WHO, 111, ERROR, "File has been locked for 30 seconds straight. (#4.3.0)"); } -void temp_qmail(fn) char *fn; +static void temp_qmail(char *fn) { logmsg(WHO, 111, FATAL, B("Unable to open: ", fn, " ", error_str(errno), ". (#4.3.0)")); } @@ -117,18 +117,18 @@ char bufout[1024]; char fntmptph[80 + FMT_ULONG * 2]; char fnnewtph[80 + FMT_ULONG * 2]; -void tryunlinktmp() +static void tryunlinktmp() { unlink(fntmptph); } -void sigalrm() +static void sigalrm() { tryunlinktmp(); _exit(3); } -void maildir_child(char *dir) +static void maildir_child(char *dir) { unsigned long pid; struct timeval time; @@ -236,7 +236,7 @@ FAIL: /* end child process */ -void maildir(char *fn) +static void maildir(char *fn) { int child; int wstat; @@ -260,7 +260,7 @@ void maildir(char *fn) } } -void mailfile(char *fn) +static void mailfile(char *fn) { int fd; buffer bi; @@ -319,7 +319,7 @@ WRITERRS: _exit(111); } -void mailprogram(char *prog) +static void mailprogram(char *prog) { int child; char *(args[4]); @@ -359,7 +359,7 @@ void mailprogram(char *prog) unsigned long mailforward_qp = 0; -void mailforward(char **recips) +static void mailforward(char **recips) { struct qmail qqt; char *qqx; @@ -388,7 +388,7 @@ void mailforward(char **recips) logmsg(WHO, *qqx == 'D' ? 100 : 111, ERROR, B("Unable to forward message: ", qqx + 1, ".")); } -void bouncexf() +static void bouncexf() { int match; buffer bi; @@ -407,7 +407,7 @@ void bouncexf() } } -void checkhome() +static void checkhome() { struct stat st; @@ -422,7 +422,7 @@ void checkhome() } } -int qmeox(char *dashowner) +static int qmeox(char *dashowner) { struct stat st; @@ -439,7 +439,7 @@ int qmeox(char *dashowner) return 0; } -int qmeexists(int *fd, int *cutable) +static int qmeexists(int *fd, int *cutable) { struct stat st; @@ -471,7 +471,7 @@ int qmeexists(int *fd, int *cutable) /* "-/" "a-b-": "-/a-b-" "-/a-b-default" "-/a-default" "-/default" */ /* "-/" "a-b-c": "-/a-b-c" "-/a-b-default" "-/a-default" "-/default" */ -void qmesearch(int *fd, int *cutable) +static void qmesearch(int *fd, int *cutable) { int i; @@ -512,7 +512,7 @@ char count_buf[FMT_ULONG]; char buflog[256]; buffer bl = BUFFER_INIT(write, 1, buflog, sizeof(buflog)); -void count_print() +static void count_print() { buffer_puts(&bl, "did "); buffer_put(&bl, count_buf, fmt_ulong(count_buf, count_file)); @@ -530,7 +530,7 @@ void count_print() buffer_flush(&bl); } -void sayit(char *type, char *cmd, int len) +static void sayit(char *type, char *cmd, int len) { buffer_puts(&bl, type); buffer_put(&bl, cmd, len); -- cgit v1.2.3