summaryrefslogtreecommitdiff
path: root/src/qmail-mfrules.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
commit973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch)
tree1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/qmail-mfrules.c
parent66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff)
fix deprecated prototypes
Diffstat (limited to 'src/qmail-mfrules.c')
-rw-r--r--src/qmail-mfrules.c12
1 files changed, 6 insertions, 6 deletions
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;