cvs commit: src/usr.bin/tail Makefile extern.h forward.c read.c reverse.c tail.c

Chris Pressey cpressey at crater.dragonflybsd.org
Tue Mar 1 13:39:30 PST 2005


cpressey    2005/03/01 13:37:33 PST

DragonFly src repository

  Modified files:
    usr.bin/tail         Makefile extern.h forward.c read.c 
                         reverse.c tail.c 
  Log:
  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.
  
  Revision  Changes    Path
  1.2       +2 -0      src/usr.bin/tail/Makefile
  1.6       +5 -5      src/usr.bin/tail/extern.h
  1.6       +10 -7     src/usr.bin/tail/forward.c
  1.4       +8 -8      src/usr.bin/tail/read.c
  1.4       +4 -4      src/usr.bin/tail/reverse.c
  1.6       +51 -42    src/usr.bin/tail/tail.c


http://www.dragonflybsd.org/cvsweb/src/usr.bin/tail/Makefile.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/tail/extern.h.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/tail/forward.c.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/tail/read.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/tail/reverse.c.diff?r1=1.3&r2=1.4&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/tail/tail.c.diff?r1=1.5&r2=1.6&f=u





More information about the Commits mailing list