Add parens to get the cast that was meant in previous commit.

While we're at it, this file seems to prefer `unsigned int'
over `u_int', so go with that.
This commit is contained in:
Jacques Vidrine 2001-06-05 21:55:57 +00:00
parent b3e8643ffa
commit cc66540e0e

View File

@ -527,8 +527,8 @@ char *makenetvfslist()
mib[0] = CTL_VFS; mib[1] = VFS_GENERIC; mib[2] = VFS_MAXTYPENUM;
miblen=sizeof(maxvfsconf);
if (sysctl(mib, (u_int) sizeof (mib) / sizeof(mib[0]), &maxvfsconf,
&miblen, NULL, 0)) {
if (sysctl(mib, (unsigned int)(sizeof(mib) / sizeof(mib[0])),
&maxvfsconf, &miblen, NULL, 0)) {
warnx("sysctl failed");
return (NULL);
}