summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs
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_ext2fs
parentb962fe7bfe37ebc32bdfabde38534a23f8feae26 (diff)
When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod
Diffstat (limited to 'sbin/fsck_ext2fs')
-rw-r--r--sbin/fsck_ext2fs/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/fsck_ext2fs/main.c b/sbin/fsck_ext2fs/main.c
index 1db5abfe35e..a4c3e2baa20 100644
--- a/sbin/fsck_ext2fs/main.c
+++ b/sbin/fsck_ext2fs/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.21 2015/01/16 06:39:57 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.22 2015/02/07 02:09:13 deraadt Exp $ */
/* $NetBSD: main.c,v 1.1 1997/06/11 11:21:50 bouyer Exp $ */
/*
@@ -75,7 +75,7 @@ main(int argc, char *argv[])
break;
case 'd':
- debug++;
+ debug = 1;
break;
case 'f':
@@ -90,16 +90,16 @@ main(int argc, char *argv[])
break;
case 'n':
- nflag++;
+ nflag = 1;
yflag = 0;
break;
case 'p':
- preen++;
+ preen = 1;
break;
case 'y':
- yflag++;
+ yflag = 1;
nflag = 0;
break;