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:
Mike Smith 1998-10-24 23:12:09 +00:00
parent 00fb0e87c7
commit e74e8b8b23
1 changed files with 2 additions and 2 deletions

View File

@ -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;