Module Name: src Committed By: wiz Date: Mon Feb 13 12:55:28 UTC 2012
Modified Files: src/bin/ps: print.c Log Message: Remove unused variable. >From cppcheck via Henning Petersen in PR 46002. To generate a diff of this commit: cvs rdiff -u -r1.118 -r1.119 src/bin/ps/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/bin/ps/print.c diff -u src/bin/ps/print.c:1.118 src/bin/ps/print.c:1.119 --- src/bin/ps/print.c:1.118 Mon Jun 13 03:42:15 2011 +++ src/bin/ps/print.c Mon Feb 13 12:55:28 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.118 2011/06/13 03:42:15 dholland Exp $ */ +/* $NetBSD: print.c,v 1.119 2012/02/13 12:55:28 wiz Exp $ */ /* * Copyright (c) 2000, 2007 The NetBSD Foundation, Inc. @@ -63,7 +63,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; #else -__RCSID("$NetBSD: print.c,v 1.118 2011/06/13 03:42:15 dholland Exp $"); +__RCSID("$NetBSD: print.c,v 1.119 2012/02/13 12:55:28 wiz Exp $"); #endif #endif /* not lint */ @@ -554,13 +554,12 @@ void lstate(void *arg, VARENT *ve, int mode) { struct kinfo_lwp *k; - int flag, is_zombie; + int flag; char *cp; VAR *v; char buf[16]; k = arg; - is_zombie = 0; v = ve->var; flag = k->l_flag; cp = buf; @@ -590,7 +589,6 @@ lstate(void *arg, VARENT *ve, int mode) case LSZOMB: case LSDEAD: *cp = 'Z'; - is_zombie = 1; break; case LSSUSPENDED: