summaryrefslogtreecommitdiff
path: root/usr.sbin/mopd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-09 23:00:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-09 23:00:16 +0000
commit923e0b4768e0445e7d3273702a2440a31a01c237 (patch)
tree5c488f573adda708e5fce12132e88fc64979666b /usr.sbin/mopd
parentbbf09057d1d30d8cd2cce9517c417ef641d91e55 (diff)
clean up flags++ instances around getopt()
ok florian
Diffstat (limited to 'usr.sbin/mopd')
-rw-r--r--usr.sbin/mopd/mopchk/mopchk.c6
-rw-r--r--usr.sbin/mopd/mopd/mopd.c12
-rw-r--r--usr.sbin/mopd/mopprobe/mopprobe.c12
-rw-r--r--usr.sbin/mopd/moptrace/moptrace.c8
4 files changed, 19 insertions, 19 deletions
diff --git a/usr.sbin/mopd/mopchk/mopchk.c b/usr.sbin/mopd/mopchk/mopchk.c
index 4596161946f..5e8612272e1 100644
--- a/usr.sbin/mopd/mopchk/mopchk.c
+++ b/usr.sbin/mopd/mopchk/mopchk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mopchk.c,v 1.17 2014/12/13 14:44:59 miod Exp $ */
+/* $OpenBSD: mopchk.c,v 1.18 2015/02/09 23:00:14 deraadt Exp $ */
/*
* Copyright (c) 1995-96 Mats O Jansson. All rights reserved.
@@ -69,10 +69,10 @@ main(argc, argv)
while ((op = getopt(argc, argv, "av")) != -1) {
switch (op) {
case 'a':
- AllFlag++;
+ AllFlag = 1;
break;
case 'v':
- VersionFlag++;
+ VersionFlag = 1;
break;
default:
Usage();
diff --git a/usr.sbin/mopd/mopd/mopd.c b/usr.sbin/mopd/mopd/mopd.c
index 16c96b860ef..fd9d4b80c56 100644
--- a/usr.sbin/mopd/mopd/mopd.c
+++ b/usr.sbin/mopd/mopd/mopd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mopd.c,v 1.18 2013/07/05 21:02:07 miod Exp $ */
+/* $OpenBSD: mopd.c,v 1.19 2015/02/09 23:00:14 deraadt Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@@ -75,22 +75,22 @@ main(int argc, char *argv[])
while ((c = getopt(argc, argv, "34adfv")) != -1)
switch (c) {
case '3':
- Not3Flag++;
+ Not3Flag = 1;
break;
case '4':
- Not4Flag++;
+ Not4Flag = 1;
break;
case 'a':
- AllFlag++;
+ AllFlag = 1;
break;
case 'd':
DebugFlag++;
break;
case 'f':
- ForegroundFlag++;
+ ForegroundFlag = 1;
break;
case 'v':
- VersionFlag++;
+ VersionFlag = 1;
break;
default:
Usage();
diff --git a/usr.sbin/mopd/mopprobe/mopprobe.c b/usr.sbin/mopd/mopprobe/mopprobe.c
index a023e82eced..f6fe7f7f61a 100644
--- a/usr.sbin/mopd/mopprobe/mopprobe.c
+++ b/usr.sbin/mopd/mopprobe/mopprobe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mopprobe.c,v 1.14 2013/07/05 21:02:07 miod Exp $ */
+/* $OpenBSD: mopprobe.c,v 1.15 2015/02/09 23:00:14 deraadt Exp $ */
/*
* Copyright (c) 1993-96 Mats O Jansson. All rights reserved.
@@ -75,19 +75,19 @@ main(int argc, char *argv[])
while ((op = getopt(argc, argv, "34aov")) != -1) {
switch (op) {
case '3':
- Not3Flag++;
+ Not3Flag = 1;
break;
case '4':
- Not4Flag++;
+ Not4Flag = 1;
break;
case 'a':
- AllFlag++;
+ AllFlag = 1;
break;
case 'o':
- OnceFlag++;
+ OnceFlag = 1;
break;
case 'v':
- VerboseFlag++;
+ VerboseFlag = 1;
break;
default:
Usage();
diff --git a/usr.sbin/mopd/moptrace/moptrace.c b/usr.sbin/mopd/moptrace/moptrace.c
index 0c69eec6055..5bcb6292b73 100644
--- a/usr.sbin/mopd/moptrace/moptrace.c
+++ b/usr.sbin/mopd/moptrace/moptrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: moptrace.c,v 1.12 2013/07/05 21:02:07 miod Exp $ */
+/* $OpenBSD: moptrace.c,v 1.13 2015/02/09 23:00:14 deraadt Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
@@ -69,13 +69,13 @@ main(int argc, char *argv[])
while ((op = getopt(argc, argv, "34ad")) != -1) {
switch (op) {
case '3':
- Not3Flag++;
+ Not3Flag = 1;
break;
case '4':
- Not4Flag++;
+ Not4Flag = 1;
break;
case 'a':
- AllFlag++;
+ AllFlag = 1;
break;
case 'd':
DebugFlag++;