diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-08 13:24:39 +0200 |
commit | 973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch) | |
tree | 1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/qmail-qread.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/qmail-qread.c')
-rw-r--r-- | src/qmail-qread.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/qmail-qread.c b/src/qmail-qread.c index a0925ad..5b2b6e7 100644 --- a/src/qmail-qread.c +++ b/src/qmail-qread.c @@ -23,13 +23,13 @@ readsubdir rs; -void die(int n) +static void die(int n) { buffer_flush(buffer_1); _exit(n); } -void warn(char *s1, char *s2) +static void warn(char *s1, char *s2) { char *x; x = error_str(errno); @@ -40,25 +40,25 @@ void warn(char *s1, char *s2) buffer_puts(buffer_1, "\n"); } -void die_nomem() +static void die_nomem() { buffer_puts(buffer_1, "fatal: out of memory\n"); die(111); } -void die_chdir() +static void die_chdir() { warn("fatal: unable to chdir", ""); die(110); } -void die_opendir(fn) char *fn; +static void die_opendir(char *fn) { warn("fatal: unable to opendir ", fn); die(110); } -void err(unsigned long id) +static void err(unsigned long id) { char foo[FMT_ULONG]; foo[fmt_ulong(foo, id)] = 0; @@ -79,7 +79,7 @@ datetime_sec qtime; int flagbounce; unsigned long size; -unsigned int fmtstats(char *s) +static unsigned int fmtstats(char *s) { struct datetime dt; unsigned int len; @@ -122,7 +122,7 @@ unsigned int fmtstats(char *s) stralloc stats = {0}; -void out(char *s, unsigned int n) +static void out(char *s, unsigned int n) { while (n > 0) { buffer_put(buffer_1, ((*s >= 32) && (*s <= 126)) ? s : "_", 1); @@ -131,17 +131,17 @@ void out(char *s, unsigned int n) } } -void outs(char *s) +static void outs(char *s) { out(s, str_len(s)); } -void outok(char *s) +static void outok(char *s) { buffer_puts(buffer_1, s); } -void putstats() +static void putstats() { if (!stralloc_ready(&stats, fmtstats(FMT_LEN))) die_nomem(); stats.len = fmtstats(stats.s); |