Commit Graph

14 Commits

Author SHA1 Message Date
dwmalone
b4339b74ad ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by:	md5
2002-09-04 23:29:10 +00:00
jmallett
66c1bdebae Minor cleanup: ANSI C function declarations, use argc after getopt(3) to check
for remaining arguments, rather than checking for *argv being a boolean truth.
Instead of using an empty case to check for -f- to mean "read stdin", and have
stdin reopned otherwise, use a FILE* for the mbox, and assign it to stdin when
we mean to use stdin, otherwise fopen(3).  Kill `register' qualifier.
2002-06-30 17:36:54 +00:00
obrien
bc61fc95d8 Consistently use FBSDID 2002-06-30 05:25:07 +00:00
imp
74d826c7a6 remove __P 2002-03-22 01:22:50 +00:00
ru
6faaeadacf Replaced unsafe use of sprintf() with snprintf(). 2000-10-03 17:05:02 +00:00
imp
180527062b optarg and optind are declared in unistd.h.
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
green
37fd08ae8d This covers the previous version, since a null commit message was accidentally
used:

Add a -c flag to print a count of messages and exit.

PR:             10921
Submitted by:   James Howard <howardjp@byzantine.student.umd.edu>
Requested by:	DES
1999-07-27 02:08:55 +00:00
green
f54e4029ae *** empty log message *** 1999-07-26 23:12:12 +00:00
charnier
3354e4d90e Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
imp
141381e1cb compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 04:34:07 +00:00
jkh
588cbc5059 Honor the MAIL environment variable, if set.
Submitted-by: Dan Cross <cross@math.psu.edu>
1996-10-06 01:54:22 +00:00
wosch
1f24c85f7b Read from standard input if file name "-" is given. 1996-01-28 23:43:37 +00:00
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00