Remove unused variable.
From cppcheck via Henning Petersen in PR 46002.
This commit is contained in:
parent
6ef3ca5393
commit
6b6a89aacb
@ -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.
|
* Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
|
||||||
@ -63,7 +63,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
|
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -554,13 +554,12 @@ void
|
|||||||
lstate(void *arg, VARENT *ve, int mode)
|
lstate(void *arg, VARENT *ve, int mode)
|
||||||
{
|
{
|
||||||
struct kinfo_lwp *k;
|
struct kinfo_lwp *k;
|
||||||
int flag, is_zombie;
|
int flag;
|
||||||
char *cp;
|
char *cp;
|
||||||
VAR *v;
|
VAR *v;
|
||||||
char buf[16];
|
char buf[16];
|
||||||
|
|
||||||
k = arg;
|
k = arg;
|
||||||
is_zombie = 0;
|
|
||||||
v = ve->var;
|
v = ve->var;
|
||||||
flag = k->l_flag;
|
flag = k->l_flag;
|
||||||
cp = buf;
|
cp = buf;
|
||||||
@ -590,7 +589,6 @@ lstate(void *arg, VARENT *ve, int mode)
|
|||||||
case LSZOMB:
|
case LSZOMB:
|
||||||
case LSDEAD:
|
case LSDEAD:
|
||||||
*cp = 'Z';
|
*cp = 'Z';
|
||||||
is_zombie = 1;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LSSUSPENDED:
|
case LSSUSPENDED:
|
||||||
|
Loading…
Reference in New Issue
Block a user