summaryrefslogtreecommitdiffstats
path: root/usr.sbin/edquota
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-02-09 23:00:14 +0000
committerderaadt <deraadt@openbsd.org>2015-02-09 23:00:14 +0000
commit28056f30107dcf32988d70b56824d14f4aced47b (patch)
tree7064fd5a12242164431f7b3e24733588e38baacb /usr.sbin/edquota
parentremove support for floating or unsigned time_t. leave the incorrect comment (diff)
downloadwireguard-openbsd-28056f30107dcf32988d70b56824d14f4aced47b.tar.xz
wireguard-openbsd-28056f30107dcf32988d70b56824d14f4aced47b.zip
clean up flags++ instances around getopt()
ok florian
Diffstat (limited to 'usr.sbin/edquota')
-rw-r--r--usr.sbin/edquota/edquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 904569ecca1..fd14f3b9bd0 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -113,7 +113,7 @@ main(int argc, char *argv[])
switch(ch) {
case 'p':
protoname = optarg;
- pflag++;
+ pflag = 1;
break;
case 'g':
quotatype = GRPQUOTA;
@@ -122,7 +122,7 @@ main(int argc, char *argv[])
quotatype = USRQUOTA;
break;
case 't':
- tflag++;
+ tflag = 1;
break;
default:
usage();