Work around some variables having N_UNDF types but valid values; this
makes vmstat work on ELF kernels again. Submitted by: Daniel Rock <rock@cs.uni-sb.de>
This commit is contained in:
parent
00fb0e87c7
commit
e74e8b8b23
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)vmstat.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: vmstat.c,v 1.26 1998/09/16 18:20:23 dillon Exp $";
|
||||
"$Id: vmstat.c,v 1.27 1998/09/20 00:11:17 ken Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -909,7 +909,7 @@ kread(nlx, addr, size)
|
||||
{
|
||||
char *sym;
|
||||
|
||||
if (namelist[nlx].n_type == 0 || namelist[nlx].n_value == 0) {
|
||||
if (namelist[nlx].n_value == 0) {
|
||||
sym = namelist[nlx].n_name;
|
||||
if (*sym == '_')
|
||||
++sym;
|
||||
|
Loading…
Reference in New Issue
Block a user