From e74e8b8b23d807ce882107838290cc18d37e7a38 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Sat, 24 Oct 1998 23:12:09 +0000 Subject: [PATCH] Work around some variables having N_UNDF types but valid values; this makes vmstat work on ELF kernels again. Submitted by: Daniel Rock --- usr.bin/vmstat/vmstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 3e6b65aca2b..6abcad97a76 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -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 @@ -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;