cvs commit: src/usr.bin/tsort Makefile tsort.c
Chris Pressey
cpressey at crater.dragonflybsd.org
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
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
More information about the Commits
mailing list