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

cvs commit: src/usr.bin/patch


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Sep 2004 12:09:50 -0700 (PDT)

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@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



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