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-dkverify.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/qmail-dkverify.c') diff --git a/src/qmail-dkverify.c b/src/qmail-dkverify.c index 0438f58..cb123db 100644 --- a/src/qmail-dkverify.c +++ b/src/qmail-dkverify.c @@ -52,82 +52,82 @@ buffer bi = BUFFER_INIT(read, 0, bufin, sizeof(bufin)); // read buffer char bufout[1024]; buffer bo = BUFFER_INIT(write, 1, bufout, sizeof(bufout)); // output message -void die(int e) +static void die(int e) { _exit(e); } -void die_pipe(char *fn) +static void die_pipe(char *fn) { unlink(fn); die(53); } -void die_write(char *fn) +static void die_write(char *fn) { unlink(fn); die(53); } -void die_read() +static void die_read() { die(54); } -void out(char *s) +static void out(char *s) { if (buffer_puts(&bo, s) == -1) _exit(111); } -void zero() +static void zero() { if (buffer_put(&bo, "\0", 1) == -1) _exit(111); } -void zerodie() +static void zerodie() { zero(); buffer_flush(&bo); _exit(111); } -void temp_nomem() +static void temp_nomem() { out("ZOut of memory. (#4.3.0)\n"); zerodie(); } -void temp_chdir() +static void temp_chdir() { out("ZUnable to switch to target directory. (#4.3.0)\n"); zerodie(); } -void temp_create() +static void temp_create() { out("ZUnable to create DKIM stage file. (#4.3.0)\n"); zerodie(); } -void temp_unlink() +static void temp_unlink() { out("ZUnable to unlink DKIM stage file. (#4.3.0)\n"); zerodie(); } -void temp_read() +static void temp_read() { out("ZUnable to read message. (#4.3.0)\n"); zerodie(); } -void temp_socket() +static void temp_socket() { out("ZUnable to crate socket pair. (#4.3.0)\n"); zerodie(); } -void temp_control() +static void temp_control() { out("ZUnable to read control files. (#4.3.0)\n"); zerodie(); @@ -140,14 +140,14 @@ static stralloc fndkin = {0}; static stralloc fndkout = {0}; static stralloc result = {0}; -void fnmake_dkim(unsigned long id) +static void fnmake_dkim(unsigned long id) { fndkin.len = fmtqfn(fndkin.s, "queue/dkim/", id, 1); id += id; fndkout.len = fmtqfn(fndkout.s, "queue/dkim/", id, 1); } -void dkim_stage() +static void dkim_stage() { int r; int fd; @@ -184,7 +184,7 @@ void dkim_stage() if (close(fd) == -1) die_write(fndkin.s); } -int mess_dkim() +static int mess_dkim() { stralloc line = {0}; int match; @@ -240,7 +240,7 @@ int mess_dkim() return r; } -int dkim_verify() +static int dkim_verify() { int child; int wstat; @@ -269,7 +269,7 @@ int dkim_verify() } } -int dkim_result(const char *me) +static int dkim_result(const char *me) { int max = 64; int fd; @@ -314,7 +314,7 @@ int dkim_result(const char *me) return r; } -int qmail_queue() +static int qmail_queue() { int fd; int r; @@ -373,7 +373,7 @@ int qmail_queue() return 0; } -void dkim_unlink() +static void dkim_unlink() { if (unlink(fndkin.s) == -1) if (errno != ENOENT) temp_unlink(); -- cgit v1.2.3