aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2001-06-05 21:16:27 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2001-06-05 21:16:27 +0000
commitb3e8643ffa41579e513617ee4b2abb5f9992de3a (patch)
treeab0cf35027958896bc0373661024b1296b541bb2 /bin
parentc689eed5f3c8f366b79fce1445defa6e9a530867 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/df/df.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 3abeb9568cd7..27f0fd7255f7 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -521,12 +521,14 @@ usage()
char *makenetvfslist()
{
char *str, *strptr, **listptr;
- int mib[3], maxvfsconf, miblen, cnt=0, i;
+ int mib[3], maxvfsconf, cnt=0, i;
+ size_t miblen;
struct ovfsconf *ptr;
mib[0] = CTL_VFS; mib[1] = VFS_GENERIC; mib[2] = VFS_MAXTYPENUM;
miblen=sizeof(maxvfsconf);
- if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), &maxvfsconf, &miblen, NULL, 0)) {
+ if (sysctl(mib, (u_int) sizeof (mib) / sizeof(mib[0]), &maxvfsconf,
+ &miblen, NULL, 0)) {
warnx("sysctl failed");
return (NULL);
}