summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2001-06-05 21:55:57 +0000
committernectar <nectar@FreeBSD.org>2001-06-05 21:55:57 +0000
commitcc91420e2c2379dda6ef14ae809d91e3e352fe9e (patch)
tree696e5ab74319b3b7bee7375b7d10da39f39f9a78 /bin
parent023821479ec99829e2d47503722fe2216409a4a2 (diff)
downloadFreeBSD-src-cc91420e2c2379dda6ef14ae809d91e3e352fe9e.zip
FreeBSD-src-cc91420e2c2379dda6ef14ae809d91e3e352fe9e.tar.gz
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.
Diffstat (limited to 'bin')
-rw-r--r--bin/df/df.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 27f0fd7..3cec5dd 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -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);
}
OpenPOWER on IntegriCloud