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/fastforward.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/fastforward.c') diff --git a/src/fastforward.c b/src/fastforward.c index 731ada8..9d35d16 100644 --- a/src/fastforward.c +++ b/src/fastforward.c @@ -55,7 +55,7 @@ struct qmail qq; char qp[FMT_ULONG]; char qqbuf[1]; -ssize_t qqwrite(int fd, char *buf, int len) +static ssize_t qqwrite(int fd, char *buf, int len) { qmail_put(&qq, buf, len); return len; @@ -79,7 +79,7 @@ stralloc todo = {0}; stralloc mailinglist = {0}; -void dofile(char *fn) +static void dofile(char *fn) { int fd; struct stat st; @@ -116,12 +116,12 @@ uint32 dlen; stralloc data = {0}; struct cdb cdb; -void cdbreaderror() +static void cdbreaderror() { logmsg(WHO, 111, FATAL, B("unable to read: ", fncdb)); } -int findtarget(int flagwild, char *prepend, char *addr) +static int findtarget(int flagwild, char *prepend, char *addr) { int r; int at; @@ -157,7 +157,7 @@ int findtarget(int flagwild, char *prepend, char *addr) return 0; } -int gettarget(int flagwild, char *prepend, char *addr) +static int gettarget(int flagwild, char *prepend, char *addr) { if (!findtarget(flagwild, prepend, addr)) return 0; dlen = cdb_datalen(&cdb); @@ -168,7 +168,7 @@ int gettarget(int flagwild, char *prepend, char *addr) return 1; } -void doprogram(char *arg) +static void doprogram(char *arg) { char *args[5]; int child; @@ -222,7 +222,7 @@ void doprogram(char *arg) if (seek_begin(0) == -1) logmsg(WHO, 111, FATAL, "unable to rewind input: "); } -void dodata() +static void dodata() { int i; int j; @@ -244,7 +244,7 @@ void dodata() } } -void dorecip(char *addr) +static void dorecip(char *addr) { if (!findtarget(0, "?", addr)) { @@ -257,7 +257,7 @@ void dorecip(char *addr) if (!stralloc_0(&forward)) nomem(); } -void doorigrecip(char *addr) +static void doorigrecip(char *addr) { if (sender.len) if ((sender.len != 4) || byte_diff(sender.s, 4, "#@[]")) -- cgit v1.2.3