diff options
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}; |