Unbreak build.

libprocstat still uses __si_namebuf.
This commit is contained in:
Ed Schouten 2012-02-10 13:47:40 +00:00
parent e6ad3d22f4
commit c34b382869
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231384

View File

@ -80,7 +80,7 @@ kdevtoname(kvm_t *kd, struct cdev *dev, char *buf)
assert(buf);
if (!kvm_read_all(kd, (unsigned long)dev, &si, sizeof(si)))
return (1);
strlcpy(buf, si.__si_namebuf, SPECNAMELEN + 1);
strlcpy(buf, si.si_name, SPECNAMELEN + 1);
return (0);
}