diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-12-14 12:18:28 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-12-14 12:18:28 +0000 |
commit | 28e461d672204f54b8eb68a590d36c23a32f9574 (patch) | |
tree | 3e3c51ee95dec9ad261710930b40e4426389cbb8 /bin/ps/ps.c | |
parent | fb3035e3379d9258753316427b03a4d8d0676d07 (diff) |
-Wall'ing.
Diffstat (limited to 'bin/ps/ps.c')
-rw-r--r-- | bin/ps/ps.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index f152acd640b..6e4b70e89b5 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ps.c,v 1.5 1996/08/06 19:33:47 deraadt Exp $ */ +/* $OpenBSD: ps.c,v 1.6 1996/12/14 12:18:10 mickey Exp $ */ /* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ps.c 8.4 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: ps.c,v 1.5 1996/08/06 19:33:47 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: ps.c,v 1.6 1996/12/14 12:18:10 mickey Exp $"; #endif #endif /* not lint */ @@ -466,8 +466,8 @@ kludge_oldps_options(s) * if there's a trailing number, and not a preceding 'p' (pid) or * 't' (tty) flag, then assume it's a pid and insert a 'p' flag. */ - if (isdigit(*cp) && (cp == s || cp[-1] != 't' && cp[-1] != 'p' && - (cp - 1 == s || cp[-2] != 't'))) + if (isdigit(*cp) && (cp == s || (cp[-1] != 't' && cp[-1] != 'p' && + (cp - 1 == s || cp[-2] != 't')))) *ns++ = 'p'; (void)strcpy(ns, cp); /* and append the number */ |