Don't reset getopt after each loop, we don't use the argc / argv
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 5 Apr 2005 09:04:49 +0000 (09:04 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Tue, 5 Apr 2005 09:04:49 +0000 (09:04 +0000)
commit12a38ea4e522a35bb0407f1d9bf7a3127a8e3f7d
treecee1eec17e52c406cacee2446fd4087b0b5f7d77
parent28b65a5203c22e87e74e5e0a29f1e56a3fa8dbf4
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.
usr.sbin/mptable/mptable.c