summaryrefslogtreecommitdiff
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-07 02:09:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-07 02:09:15 +0000
commit5ede4fe071f859c623b30c6244fc142da5a3afdf (patch)
tree95ce658d52a059b28c34ae12116c96ac008bb5a2 /sbin/fsck_ffs
parentb962fe7bfe37ebc32bdfabde38534a23f8feae26 (diff)
When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c
index 60ba2e06736..63bd1feeea2 100644
--- a/sbin/fsck_ffs/main.c
+++ b/sbin/fsck_ffs/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.43 2015/01/20 18:22:21 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.44 2015/02/07 02:09:13 deraadt Exp $ */
/* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */
/*
@@ -64,7 +64,7 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, "dfpnNyYb:c:m:")) != -1) {
switch (ch) {
case 'p':
- preen++;
+ preen = 1;
break;
case 'b':
@@ -82,7 +82,7 @@ main(int argc, char *argv[])
break;
case 'd':
- debug++;
+ debug = 1;
break;
case 'f':
@@ -98,13 +98,13 @@ main(int argc, char *argv[])
case 'n':
case 'N':
- nflag++;
+ nflag = 1;
yflag = 0;
break;
case 'y':
case 'Y':
- yflag++;
+ yflag = 1;
nflag = 0;
break;