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:
parent
b3e8643ffa
commit
cc66540e0e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user