cvs commit: src/usr.bin/tsort Makefile tsort.c

Chris Pressey cpressey at
Tue Dec 21 12:01:29 PST 2004

cpressey    2004/12/21 12:00:57 PST

DragonFly src repository

  Modified files:
    usr.bin/tsort        Makefile tsort.c 
  Bump WARNS to 6:
  - Add missing prototype;
  - Where appropriate, adjust types and consequently remove casts;
  - Explicitly initialize variables that GCC can't tell won't be used
  Also, while here, apply style(9):
  - Remove `register' keywords;
  - Add `static' keywords to local functions and prototypes;
  - Remove casts to void when ignoring return values;
  - Explicitly compare non-booleans against zero or NULL;
  - Make comments real sentences;
  - Add braces and NOTREACHED.
  Revision  Changes    Path
  1.2       +2 -0      src/usr.bin/tsort/Makefile
  1.4       +63 -55    src/usr.bin/tsort/tsort.c

More information about the Commits mailing list