diff options
author | msmith <msmith@FreeBSD.org> | 1998-10-24 23:12:09 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-10-24 23:12:09 +0000 |
commit | b628626c229182975efa27cf4a49cce8aa27723e (patch) | |
tree | 1ac3484819c957e02d317ee22138082b2903686a /usr.bin/vmstat | |
parent | bfaec8d4e5ddb15d7ab77116b37c8298166c4132 (diff) | |
download | FreeBSD-src-b628626c229182975efa27cf4a49cce8aa27723e.zip FreeBSD-src-b628626c229182975efa27cf4a49cce8aa27723e.tar.gz |
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>
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 3e6b65a..6abcad9 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 <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; |