summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2015-04-09 19:48:25 +0000
committerokan <okan@openbsd.org>2015-04-09 19:48:25 +0000
commit3f36dab3c158a291e3a6be82fbcb5e84a7ac2a89 (patch)
treece85bd1b9c41bb24da8ce25623d07b09b6bb0de5
parentBoth more and less accept options beginning with '+'. (diff)
downloadwireguard-openbsd-3f36dab3c158a291e3a6be82fbcb5e84a7ac2a89.tar.xz
wireguard-openbsd-3f36dab3c158a291e3a6be82fbcb5e84a7ac2a89.zip
kflag and wflag don't need to be counters; wflag only needs to know if
greater than 0 for its one test case. ok deraadt
-rw-r--r--bin/ps/ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 56eb2658af3..c33837f6de3 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ps.c,v 1.63 2015/01/16 06:39:32 deraadt Exp $ */
+/* $OpenBSD: ps.c,v 1.64 2015/04/09 19:48:25 okan Exp $ */
/* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */
/*-
@@ -158,7 +158,7 @@ main(int argc, char *argv[])
jfmt[0] = '\0';
break;
case 'k':
- kflag++;
+ kflag = 1;
break;
case 'L':
showkey();
@@ -248,7 +248,7 @@ main(int argc, char *argv[])
termwidth = UNLIMITED;
else if (termwidth < 131)
termwidth = 131;
- wflag++;
+ wflag = 1;
break;
case 'x':
xflg = 1;