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

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Tue Apr 5 02:05:12 PDT 2005


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





More information about the Commits mailing list