diff options
author | charnier <charnier@FreeBSD.org> | 2010-12-19 16:25:23 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2010-12-19 16:25:23 +0000 |
commit | f4859bef574232113ba3dcc6bb533d0d9e06d304 (patch) | |
tree | cb3d657c33bdf93a7127358a4d9a36796aa4d3dd /usr.bin/mail/head.c | |
parent | 708cd7af18dda847027342ccd0ee5ec588215d93 (diff) | |
download | FreeBSD-src-f4859bef574232113ba3dcc6bb533d0d9e06d304.zip FreeBSD-src-f4859bef574232113ba3dcc6bb533d0d9e06d304.tar.gz |
Add __unused. Ansi prototypes.
Diffstat (limited to 'usr.bin/mail/head.c')
-rw-r--r-- | usr.bin/mail/head.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/usr.bin/mail/head.c b/usr.bin/mail/head.c index d29b2b0..29b1426 100644 --- a/usr.bin/mail/head.c +++ b/usr.bin/mail/head.c @@ -50,8 +50,7 @@ __FBSDID("$FreeBSD$"); * accomodate all funny formats. */ int -ishead(linebuf) - char linebuf[]; +ishead(char linebuf[]) { struct headline hl; char parbuf[BUFSIZ]; @@ -73,10 +72,8 @@ ishead(linebuf) return (1); } -/*ARGSUSED*/ void -fail(linebuf, reason) - const char *linebuf, *reason; +fail(const char *linebuf __unused, const char *reason __unused) { /* @@ -93,9 +90,7 @@ fail(linebuf, reason) * structure. Actually, it scans. */ void -parse(line, hl, pbuf) - char line[], pbuf[]; - struct headline *hl; +parse(char line[], struct headline *hl, char pbuf[]) { char *cp, *sp; char word[LINESIZE]; @@ -134,9 +129,7 @@ parse(line, hl, pbuf) * the left string into it. */ char * -copyin(src, space) - char *src; - char **space; +copyin(char *src, char **space) { char *cp, *top; @@ -183,8 +176,7 @@ static char *date_formats[] = { }; int -isdate(date) - char date[]; +isdate(char date[]) { int i; @@ -200,8 +192,7 @@ isdate(date) * Return 1 if they match, 0 if they don't */ int -cmatch(cp, tp) - char *cp, *tp; +cmatch(char *cp, char *tp) { while (*cp != '\0' && *tp != '\0') @@ -256,8 +247,7 @@ cmatch(cp, tp) * or NULL if none follow. */ char * -nextword(wp, wbuf) - char *wp, *wbuf; +nextword(char *wp, char *wbuf) { int c; |