summaryrefslogtreecommitdiff
path: root/usr.bin/ypwhich/ypwhich.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-08 23:40:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-02-08 23:40:36 +0000
commit7105f3a882af27b3a37d2e5b22e6555a061b7657 (patch)
treeeb4becb775bdf83fd9b483cca8c46ea157be2ac2 /usr.bin/ypwhich/ypwhich.c
parent0c4a701fd12c657a080bb6eda7d167bb78f0e79e (diff)
in getopt() blocks, stop incrementing flag variable which are supposed
to just be 0/1 ok miod florian
Diffstat (limited to 'usr.bin/ypwhich/ypwhich.c')
-rw-r--r--usr.bin/ypwhich/ypwhich.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ypwhich/ypwhich.c b/usr.bin/ypwhich/ypwhich.c
index e773c6c207a..798fc066f4e 100644
--- a/usr.bin/ypwhich/ypwhich.c
+++ b/usr.bin/ypwhich/ypwhich.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypwhich.c,v 1.22 2015/01/16 06:40:15 deraadt Exp $ */
+/* $OpenBSD: ypwhich.c,v 1.23 2015/02/08 23:40:35 deraadt Exp $ */
/* $NetBSD: ypwhich.c,v 1.6 1996/05/13 02:43:48 thorpej Exp $ */
/*
@@ -158,10 +158,10 @@ main(int argc, char *argv[])
domain = optarg;
break;
case 't':
- notrans++;
+ notrans = 1;
break;
case 'm':
- mode++;
+ mode = 1;
break;
default:
usage();