DragonFly BSD
DragonFly commits List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Dec 2004 12:00:57 -0800 (PST)

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

DragonFly src repository

  Modified files:
    usr.bin/tsort        Makefile tsort.c 
  Log:
  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
    unintialized.
  
  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


http://www.dragonflybsd.org/cvsweb/src/usr.bin/tsort/Makefile.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/tsort/tsort.c.diff?r1=1.3&r2=1.4&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]