diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-02-09 23:00:16 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-02-09 23:00:16 +0000 |
commit | 923e0b4768e0445e7d3273702a2440a31a01c237 (patch) | |
tree | 5c488f573adda708e5fce12132e88fc64979666b /usr.sbin/mopd/mopchk | |
parent | bbf09057d1d30d8cd2cce9517c417ef641d91e55 (diff) |
clean up flags++ instances around getopt()
ok florian
Diffstat (limited to 'usr.sbin/mopd/mopchk')
-rw-r--r-- | usr.sbin/mopd/mopchk/mopchk.c | 6 |
1 files changed, 3 insertions, 3 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(); |