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

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


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Jan 2005 12:27:51 -0800 (PST)

cpressey    2005/01/10 12:27:51 PST

DragonFly src repository

  Modified files:
    sbin/sysctl          Makefile sysctl.c 
  Log:
  Raise WARNS to 6 and generally clean up:
  - Constify and use size_t instead of int;
  - Merge and add variables as appropriate;
  - Use more appropriate printf() format specifier, and replace
    printf() with fwrite() in one instance;
  - Replace name2oid() with sysctlnametomib().  Retain old error
    message when the sysctl's name cannot be resolved to a MIB.
  
  Based-on-coincident-patches-by: myself, and Peter Schuller
                          <peter_dot_schuller_at_infidyne_dot_com>
  Refined-with-input-from: joerg
  OK'ed-by: joerg
  
  Revision  Changes    Path
  1.3       +2 -1      src/sbin/sysctl/Makefile
  1.7       +45 -56    src/sbin/sysctl/sysctl.c


http://www.dragonflybsd.org/cvsweb/src/sbin/sysctl/Makefile.diff?r1=1.2&r2=1.3&f=u
http://www.dragonflybsd.org/cvsweb/src/sbin/sysctl/sysctl.c.diff?r1=1.6&r2=1.7&f=u



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