summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 23:45:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 23:45:36 +0000
commitf6e26469fce336e33d0d3a15c344aca82f354ef9 (patch)
treee58269967d3a848b4da999e58d920a11dc0af596 /bin
parenta7e18b15791831cb95fe053d2ed017adb8c3bf54 (diff)
remove unused variable
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/ps.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c
index 4e502ec2f9d..66089153613 100644
--- a/bin/ps/ps.c
+++ b/bin/ps/ps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ps.c,v 1.38 2004/02/24 11:53:45 jmc Exp $ */
+/* $OpenBSD: ps.c,v 1.39 2004/09/14 23:45:35 deraadt Exp $ */
/* $NetBSD: ps.c,v 1.15 1995/05/18 20:33:25 mycroft Exp $ */
/*-
@@ -40,7 +40,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.38 2004/02/24 11:53:45 jmc Exp $";
+static char rcsid[] = "$OpenBSD: ps.c,v 1.39 2004/09/14 23:45:35 deraadt Exp $";
#endif
#endif /* not lint */
@@ -72,7 +72,7 @@ static char rcsid[] = "$OpenBSD: ps.c,v 1.38 2004/02/24 11:53:45 jmc Exp $";
extern char *__progname;
-struct varent *vhead, *vtail;
+struct varent *vhead;
int eval; /* exit value */
int rawcpu; /* -C */
@@ -362,7 +362,7 @@ main(int argc, char *argv[])
* for each proc, call each variable output function.
*/
for (i = lineno = 0; i < nentries; i++) {
- if (xflg == 0 && (kinfo[i]->p_tdev == NODEV ||
+ if (xflg == 0 && ((int)kinfo[i]->p_tdev == NODEV ||
(kinfo[i]->p_flag & P_CONTROLT ) == 0))
continue;
for (vent = vhead; vent; vent = vent->next) {