summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1998-10-28 06:41:24 +0000
committerjdp <jdp@FreeBSD.org>1998-10-28 06:41:24 +0000
commit5b35be6f12326ad485c46a16a3da47692a30de46 (patch)
treeb00709affc551793873675f411a50b7b91a3756f /usr.bin/vmstat
parent3794f7fb2b2fd1531a0f4c26edd11cd7cfe7c48e (diff)
downloadFreeBSD-src-5b35be6f12326ad485c46a16a3da47692a30de46.zip
FreeBSD-src-5b35be6f12326ad485c46a16a3da47692a30de46.tar.gz
Back out previous work-around for "vmstat -i" failing on ELF
kernels. A better fix is now committed to "src/lib/libc/gen/nlist.c" and "src/usr.sbin/kvm_mkdb/nlist.c".
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 6abcad9..3bc3a7c 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -909,7 +909,7 @@ kread(nlx, addr, size)
{
char *sym;
- if (namelist[nlx].n_value == 0) {
+ if (namelist[nlx].n_type == 0 || namelist[nlx].n_value == 0) {
sym = namelist[nlx].n_name;
if (*sym == '_')
++sym;
OpenPOWER on IntegriCloud