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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77791

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);
}