mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 08:33:24 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77791
@ -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