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

cvs commit: src/usr.sbin/mptable mptable.c


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 5 Apr 2005 02:04:49 -0700 (PDT)

joerg       2005/04/05 02:04:49 PDT

DragonFly src repository

  Modified files:
    usr.sbin/mptable     mptable.c 
  Log:
  Don't reset getopt after each loop, we don't use the argc / argv
  and all options have options. This should in fact use either
  getopt_long_only or a direct matching, getopt(3) is abusive.
  The adjustion of argc / argv is there to match common
  behaviour, it gets optimizes away by the compiler.
  
  Revision  Changes    Path
  1.3       +4 -5      src/usr.sbin/mptable/mptable.c


http://www.dragonflybsd.org/cvsweb/src/usr.sbin/mptable/mptable.c.diff?r1=1.2&r2=1.3&f=u



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