Raise WARNS to 6:
authorChris Pressey <cpressey@dragonflybsd.org>
Tue, 1 Mar 2005 21:37:33 +0000 (21:37 +0000)
committerChris Pressey <cpressey@dragonflybsd.org>
Tue, 1 Mar 2005 21:37:33 +0000 (21:37 +0000)
commitcee9f67190ce22887ab42c85160cfba68bba4600
tree11ddb907c1df2c1d4200225cc7c68b0fbbf650e2
parentc8380b0f459d281673562ce06f4efed7fa7fe3fd
Raise WARNS to 6:
- Remove NOTSET from the STYLE enumeration.  Use a new flag
  variable in main(), style_set, for this purpose.
- The ARG() macro is rather large and unwieldy, so replace it with
  an equivalent function, getarg().
- Rename a function to avoid conflict with a local variable inside
  that function.  Rename another function for consistency.
- Rename locals to avoid conflict with library function names.
- Sprinkle `const'.
- Use ssize_t instead of u_int to record line length.
- Ensure several local variables are initialized.
- Some explicit checks against NULL and 0.
- Add $DragonFly$ to Makefile.
usr.bin/tail/Makefile
usr.bin/tail/extern.h
usr.bin/tail/forward.c
usr.bin/tail/read.c
usr.bin/tail/reverse.c
usr.bin/tail/tail.c