Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/ps Remove unused variable.



details:   https://anonhg.NetBSD.org/src/rev/9c80dbfa6e5c
branches:  trunk
changeset: 773693:9c80dbfa6e5c
user:      wiz <wiz%NetBSD.org@localhost>
date:      Mon Feb 13 12:55:28 2012 +0000

description:
Remove unused variable.
>From cppcheck via Henning Petersen in PR 46002.

diffstat:

 bin/ps/print.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 49de30c77c4e -r 9c80dbfa6e5c bin/ps/print.c
--- a/bin/ps/print.c    Mon Feb 13 12:52:54 2012 +0000
+++ b/bin/ps/print.c    Mon Feb 13 12:55:28 2012 +0000
@@ -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 @@
 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 @@
        case LSZOMB:
        case LSDEAD:
                *cp = 'Z';
-               is_zombie = 1;
                break;
 
        case LSSUSPENDED:



Home | Main Index | Thread Index | Old Index