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-tcpto.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/qmail-tcpto.c') diff --git a/src/qmail-tcpto.c b/src/qmail-tcpto.c index 632a5cd..26a9b88 100644 --- a/src/qmail-tcpto.c +++ b/src/qmail-tcpto.c @@ -24,13 +24,13 @@ #define WHO "qmail-tcpto" -void die(n) int n; +static void die(int n) { buffer_flush(buffer_1); _exit(n); } -void warn(s) char *s; +static void warn(char *s) { char *x; x = error_str(errno); @@ -40,22 +40,22 @@ void warn(s) char *s; buffer_puts(buffer_1, "\n"); } -void die_chdir() +static void die_chdir() { logmsg(WHO, 110, FATAL, "unable to chdir"); } -void die_open() +static void die_open() { logmsg(WHO, 112, FATAL, "unable to open tcpto"); } -void die_lock() +static void die_lock() { logmsg(WHO, 112, FATAL, "unable to lock tcpto"); } -void die_read() +static void die_read() { logmsg(WHO, 112, FATAL, "unable to read tcpto"); } -- cgit v1.2.3