diff options
author | jdp <jdp@FreeBSD.org> | 1998-10-28 06:41:24 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1998-10-28 06:41:24 +0000 |
commit | 5b35be6f12326ad485c46a16a3da47692a30de46 (patch) | |
tree | b00709affc551793873675f411a50b7b91a3756f /usr.bin/vmstat | |
parent | 3794f7fb2b2fd1531a0f4c26edd11cd7cfe7c48e (diff) | |
download | FreeBSD-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.c | 2 |
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; |