summaryrefslogtreecommitdiff
path: root/sbin/fsirand
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/fsirand
parentb962fe7bfe37ebc32bdfabde38534a23f8feae26 (diff)
When getopt processing flags, many should be flag=1 instead of flag++
ok tedu miod
Diffstat (limited to 'sbin/fsirand')
-rw-r--r--sbin/fsirand/fsirand.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fsirand/fsirand.c b/sbin/fsirand/fsirand.c
index 12806b86c36..02f9f20fdaf 100644
--- a/sbin/fsirand/fsirand.c
+++ b/sbin/fsirand/fsirand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsirand.c,v 1.32 2015/01/20 18:22:21 deraadt Exp $ */
+/* $OpenBSD: fsirand.c,v 1.33 2015/02/07 02:09:13 deraadt Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -56,13 +56,13 @@ main(int argc, char *argv[])
while ((n = getopt(argc, argv, "bfp")) != -1) {
switch (n) {
case 'b':
- ignorelabel++;
+ ignorelabel = 1;
break;
case 'p':
- printonly++;
+ printonly = 1;
break;
case 'f':
- force++;
+ force = 1;
break;
default:
usage(1);