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".
This commit is contained in:
John Polstra 1998-10-28 06:41:24 +00:00
parent a150a878d5
commit b5e7d1133b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40690

View File

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