From 3f36dab3c158a291e3a6be82fbcb5e84a7ac2a89 Mon Sep 17 00:00:00 2001 From: okan Date: Thu, 9 Apr 2015 19:48:25 +0000 Subject: [PATCH] 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 --- bin/ps/ps.c | 6 +++--- 1 file 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; -- 2.20.1