cvs commit: src/usr.bin/patch
Joerg Sonnenberger
joerg at crater.dragonflybsd.org
Tue Sep 28 12:10:41 PDT 2004
joerg 2004/09/28 12:09:50 PDT
DragonFly src repository
Modified files:
usr.bin/patch Makefile backupfile.c backupfile.h inp.c
pch.c util.c
Log:
Make the BSD patch WARNS=6 clean
- constify string operations if possible
- rename some variables to avoid namespace clashes
- don't cast the signal functions to sig_t), it's unnecessary
Submitted-by: Sascha Wildner <saw at xxxxxxxxx>
Instead of i_ptr[++iline][0] = '\0', I've used a special empty char array
instead. I'm not sure if i_ptr[++iline] points to a valid memory location
under all circumstances and this is a safer bet.
Revision Changes Path
1.2 +1 -1 src/usr.bin/patch/Makefile
1.2 +1 -1 src/usr.bin/patch/backupfile.c
1.2 +1 -1 src/usr.bin/patch/backupfile.h
1.2 +3 -2 src/usr.bin/patch/inp.c
1.2 +46 -46 src/usr.bin/patch/pch.c
1.2 +2 -2 src/usr.bin/patch/util.c
http://www.dragonflybsd.org/cvsweb/src/usr.bin/patch/Makefile.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/patch/backupfile.c.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/patch/backupfile.h.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/patch/inp.c.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/patch/pch.c.diff?r1=1.1&r2=1.2&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/patch/util.c.diff?r1=1.1&r2=1.2&f=u
More information about the Commits
mailing list