diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-06-05 21:16:27 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-06-05 21:16:27 +0000 |
commit | 023821479ec99829e2d47503722fe2216409a4a2 (patch) | |
tree | fd391c337d2a118d41280f49fcb51533f8b674ba /bin | |
parent | 0c609abe71b85c6c5dc3d0b759c5a33ad845cef8 (diff) | |
download | FreeBSD-src-023821479ec99829e2d47503722fe2216409a4a2.zip FreeBSD-src-023821479ec99829e2d47503722fe2216409a4a2.tar.gz |
Wrong. The size of size_t is *not* the same as the size of an integer.
MFC after: 2 weeks
Diffstat (limited to 'bin')
-rw-r--r-- | bin/df/df.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 3abeb95..27f0fd7 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); } |