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/maildirwatch.c | |
parent | 66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff) |
fix deprecated prototypes
Diffstat (limited to 'src/maildirwatch.c')
-rw-r--r-- | src/maildirwatch.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/maildirwatch.c b/src/maildirwatch.c index 0fe479f..7e67d88 100644 --- a/src/maildirwatch.c +++ b/src/maildirwatch.c @@ -1,11 +1,8 @@ #include <unistd.h> #include "buffer.h" -#include "exit.h" -#include "getln.h" #include "logmsg.h" #include "open.h" -#include "str.h" #include "stralloc.h" #include "headerbody.h" @@ -15,7 +12,7 @@ #define WHO "maildirwatch" -void die_nomem() +static void die_nomem() { logmsg(WHO, 111, FATAL, "out of memory"); } @@ -25,18 +22,18 @@ stralloc sender = {0}; stralloc fromline = {0}; stralloc text = {0}; -void addtext(char *s, int n) +static void addtext(char *s, int n) { if (!stralloc_catb(&text, s, n)) die_nomem(); if (text.len > 158) text.len = 158; } -void dobody(stralloc *h) +static void dobody(stralloc *h) { addtext(h->s, h->len); } -void doheader(stralloc *h) +static void doheader(stralloc *h) { int i; switch (hfield_known(h->s, h->len)) { @@ -59,7 +56,8 @@ void doheader(stralloc *h) break; } } -void finishheader() {} + +static void finishheader() {} stralloc filenames = {0}; prioq pq = {0}; |