Make the BSD patch WARNS=6 clean
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 28 Sep 2004 19:09:50 +0000 (19:09 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 28 Sep 2004 19:09:50 +0000 (19:09 +0000)
commitf9ea5d324a9cac593746d1770215b63a71ebc228
tree4e1d9e70d6ca6c609acb55e6b576c4bc39d4ca1c
parent8a0419ded66b99b8e6fd117e622360df84b066d5
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@online.de>
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.
usr.bin/patch/Makefile
usr.bin/patch/backupfile.c
usr.bin/patch/backupfile.h
usr.bin/patch/inp.c
usr.bin/patch/pch.c
usr.bin/patch/util.c