cvs commit: src/sbin/ping6 Makefile ping6.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Pressey
Date: Saturday, March 5, 2005 - 3:27 pm

cpressey    2005/03/05 14:27:08 PST

DragonFly src repository

  Modified files:
    sbin/ping6           Makefile ping6.c 
  Log:
  Raise WARNS to 6:
  - Cast sizeof()'s to int where appropriate.
  - Initialize locals where needed.
  - Mark unused function arguments as __unused.
  - Rename some locals to avoid conflicts with globals.
  - Constify some char *'s.
  - Only define get_pathmtu() and set_pathmtu() if IPV6_RECVPATHMTU or
    IPV6_USE_MTU are #defined, respectively.  Otherwise, #define them
    as do-nothing macros.
  
  And style(9):
  - Remove `register' keywords.
  - Remove #if defined(__OperatingSystem__) conditional compilation.
  
  Submitted-by: Pawel Biernacki <kaktus_at_dragonflybsd_dot_pl>
  Some-tweaks-by: cpressey
  
  Revision  Changes    Path
  1.3       +2 -1      src/sbin/ping6/Makefile
  1.8       +33 -38    src/sbin/ping6/ping6.c


http://www.dragonflybsd.org/cvsweb/src/sbin/ping6/Makefile.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/ping6/ping6.c.diff?r1=1.7&r2=1.8&f=u
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cvs commit: src/sbin/ping6 Makefile ping6.c, Chris Pressey, (Sat Mar 5, 3:27 pm)