Commit Graph

14 Commits

Author SHA1 Message Date
David Malone
f4ac32def2 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
Juli Mallett
c948c0582c 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
David E. O'Brien
e026a48c34 Consistently use FBSDID 2002-06-30 05:25:07 +00:00
Warner Losh
f1bb2cd2aa remove __P 2002-03-22 01:22:50 +00:00
Ruslan Ermilov
d2ba10a92f Replaced unsafe use of sprintf() with snprintf(). 2000-10-03 17:05:02 +00:00
Warner Losh
b07b8563ff optarg and optind are declared in unistd.h.
h_error is declared in netdb.h
2000-09-04 05:59:25 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Brian Feldman
e3b1878804 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
Brian Feldman
82753326e8 *** empty log message *** 1999-07-26 23:12:12 +00:00
Philippe Charnier
f589c9aafa Add usage(), use err(3). 1997-07-08 10:59:50 +00:00
Warner Losh
1c8af87873 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
Jordan K. Hubbard
338fc8eb62 Honor the MAIL environment variable, if set.
Submitted-by: Dan Cross <cross@math.psu.edu>
1996-10-06 01:54:22 +00:00
Wolfram Schneider
98d04b7c68 Read from standard input if file name "-" is given. 1996-01-28 23:43:37 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00