delphij
0842b7d53f
Revert most part of 200420 as requested, as more review and polish is
...
needed.
2009-12-13 03:14:06 +00:00
delphij
b963db4652
Remove unneeded header includes from usr.bin/ except contributed code.
...
Tested with: make universe
2009-12-11 23:35:38 +00:00
tjr
3a9d887f93
Check for read errors.
2004-07-31 06:22:57 +00:00
tjr
57f33bc1c3
Add support for multibyte characters, loosely based on Bruno Haible's
...
work in the util-linux packages, but with some minor fixes.
2004-07-31 06:19:26 +00:00
tjr
8aa7bbf93e
Fix some particularly bad style(9) violations.
2004-07-31 04:33:13 +00:00
tjr
4d0f381593
Use freopen() instead of a nasty hack.
2004-07-15 06:57:36 +00:00
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
2b6e4e1504
Remove local prototypes for main().
2002-08-19 03:07:56 +00:00
imp
74d826c7a6
remove __P
2002-03-22 01:22:50 +00:00
dwmalone
d9613ea383
Style improvements recommended by Bruce as a follow up to some
...
of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
2001-12-10 21:13:08 +00:00
markm
8896138d55
Use __FBSDID().
2001-12-02 23:34:16 +00:00
dd
dc0185a459
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
kris
338a0b8095
Fix a trivial warning and clamp down with WARNS=2
...
MFC after: 1 week
2001-05-26 22:47:58 +00:00
charnier
75e5dfa3fc
Start enumerate option with `The following options are available' like
...
most of the utilities.
.Nm prog -> .Nm
Remove unused include
Make use of getopt() instead of parsing params by hand.
2000-07-24 20:22:49 +00:00
kris
cbf1c5013e
Don't call err() with no format string.
2000-07-10 08:42:58 +00:00
imp
22f901a57c
More egcs warning fixes:
...
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int
o #ifdef 0 -> #if 0
Reviewed by: obrien and chuckr
1999-04-25 22:37:58 +00:00
archie
167c036e91
Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
1998-12-06 22:58:23 +00:00
alex
005e82d0d4
-Wall cleanup.
1997-12-29 00:09:06 +00:00
charnier
948c4a67c3
Remove use of progname. Add usage().
1997-06-26 11:23:47 +00:00
rgrimes
f9ab90d9d6
BSD 4.4 Lite Usr.bin Sources
1994-05-27 12:33:43 +00:00