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-mfrules.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/qmail-mfrules.c') diff --git a/src/qmail-mfrules.c b/src/qmail-mfrules.c index 7ef097c..1e3c367 100644 --- a/src/qmail-mfrules.c +++ b/src/qmail-mfrules.c @@ -37,23 +37,23 @@ int match = 1; struct cdb_make cdb; -void die_nomem() +static void die_nomem() { logmsg(WHO, 112, FATAL, "out of memory"); } -void die_parse() +static void die_parse() { if (!stralloc_0(&line)) die_nomem(); logmsg(WHO, 100, ERROR, B("unable to parse this line: ", line.s)); } -void die_read() +static void die_read() { logmsg(WHO, 111, ERROR, "unable to read control/mailfromrules"); } -void die_write() +static void die_write() { logmsg(WHO, 111, ERROR, "unable to write to control/mailfromrules.tmp"); } @@ -61,14 +61,14 @@ void die_write() char strnum[FMT_ULONG]; stralloc sanum = {0}; -void getnum(char *buf, int len, unsigned long *u) +static void getnum(char *buf, int len, unsigned long *u) { if (!stralloc_copyb(&sanum, buf, len)) die_nomem(); if (!stralloc_0(&sanum)) die_nomem(); if (sanum.s[scan_ulong(sanum.s, u)]) die_parse(); } -void doaddressdata() +static void doaddressdata() { int i; int left; -- cgit v1.2.3