summaryrefslogtreecommitdiff
path: root/usr.bin/vis
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/vis
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/vis')
-rw-r--r--usr.bin/vis/vis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/vis/vis.c b/usr.bin/vis/vis.c
index 0ccba278aea..b32ccef190d 100644
--- a/usr.bin/vis/vis.c
+++ b/usr.bin/vis/vis.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.c,v 1.15 2013/11/27 13:32:02 okan Exp $ */
+/* $OpenBSD: vis.c,v 1.16 2015/02/08 23:40:34 deraadt Exp $ */
/* $NetBSD: vis.c,v 1.4 1994/12/20 16:13:03 jtc Exp $ */
/*-
@@ -59,7 +59,7 @@ main(int argc, char *argv[])
eflags |= VIS_ALL;
break;
case 'n':
- none++;
+ none = 1;
break;
case 'w':
eflags |= VIS_WHITE;
@@ -86,14 +86,14 @@ main(int argc, char *argv[])
}
/*FALLTHROUGH*/
case 'f':
- fold++; /* fold output lines to 80 cols */
+ fold = 1; /* fold output lines to 80 cols */
break; /* using hidden newline */
case 'l':
- markeol++; /* mark end of line with \$ */
+ markeol = 1; /* mark end of line with \$ */
break;
#ifdef DEBUG
case 'd':
- debug++;
+ debug = 1;
break;
#endif
case '?':