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/send.c | |
parent | 708cd7af18dda847027342ccd0ee5ec588215d93 (diff) | |
download | FreeBSD-src-f4859bef574232113ba3dcc6bb533d0d9e06d304.zip FreeBSD-src-f4859bef574232113ba3dcc6bb533d0d9e06d304.tar.gz |
Add __unused. Ansi prototypes.
Diffstat (limited to 'usr.bin/mail/send.c')
-rw-r--r-- | usr.bin/mail/send.c | 47 |
1 files changed, 12 insertions, 35 deletions
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c index 320a7c3..5be7405 100644 --- a/usr.bin/mail/send.c +++ b/usr.bin/mail/send.c @@ -52,11 +52,8 @@ __FBSDID("$FreeBSD$"); * prefix is a string to prepend to each output line. */ int -sendmessage(mp, obuf, doign, prefix) - struct message *mp; - FILE *obuf; - struct ignoretab *doign; - char *prefix; +sendmessage(struct message *mp, FILE *obuf, struct ignoretab *doign, + char *prefix) { long count; FILE *ibuf; @@ -227,10 +224,7 @@ sendmessage(mp, obuf, doign, prefix) * Output a reasonable looking status field. */ void -statusput(mp, obuf, prefix) - struct message *mp; - FILE *obuf; - char *prefix; +statusput(struct message *mp, FILE *obuf, char *prefix) { char statout[3]; char *cp = statout; @@ -250,9 +244,8 @@ statusput(mp, obuf, prefix) * which does all the dirty work. */ int -mail(to, cc, bcc, smopts, subject, replyto) - struct name *to, *cc, *bcc, *smopts; - char *subject, *replyto; +mail(struct name *to, struct name *cc, struct name *bcc, struct name *smopts, + char *subject, char *replyto) { struct header head; @@ -273,8 +266,7 @@ mail(to, cc, bcc, smopts, subject, replyto) * the mail routine below. */ int -sendmail(str) - char *str; +sendmail(char *str) { struct header head; @@ -294,9 +286,7 @@ sendmail(str) * in the passed header. (Internal interface). */ void -mail1(hp, printheaders) - struct header *hp; - int printheaders; +mail1(struct header *hp, int printheaders) { char *cp; char *nbuf; @@ -433,9 +423,7 @@ out: * the distribution list into the appropriate fields. */ void -fixhead(hp, tolist) - struct header *hp; - struct name *tolist; +fixhead(struct header *hp, struct name *tolist) { struct name *np; @@ -463,9 +451,7 @@ fixhead(hp, tolist) * and return the new file. */ FILE * -infix(hp, fi) - struct header *hp; - FILE *fi; +infix(struct header *hp, FILE *fi) { FILE *nfo, *nfi; int c, fd; @@ -516,10 +502,7 @@ infix(hp, fi) * passed file buffer. */ int -puthead(hp, fo, w) - struct header *hp; - FILE *fo; - int w; +puthead(struct header *hp, FILE *fo, int w) { int gotcha; @@ -545,11 +528,7 @@ puthead(hp, fo, w) * Format the given header line to not exceed 72 characters. */ void -fmt(str, np, fo, comma) - const char *str; - struct name *np; - FILE *fo; - int comma; +fmt(const char *str, struct name *np, FILE *fo, int comma) { int col, len; @@ -581,9 +560,7 @@ fmt(str, np, fo, comma) /*ARGSUSED*/ int -savemail(name, fi) - char name[]; - FILE *fi; +savemail(char name[], FILE *fi) { FILE *fo; char buf[BUFSIZ]; |