diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2015-04-09 19:48:26 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2015-04-09 19:48:26 +0000 |
commit | bcf7b23cd87b37e873ebc0431383a370a29d5ce3 (patch) | |
tree | 9f38f1e366ee7a2635219e162b557e707408e67a | |
parent | 9e2a61c67c8c018b95c7efb023450971821012d0 (diff) |
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.c | 6 |
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; |