summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2001-07-29 21:56:14 +0000
committertmm <tmm@FreeBSD.org>2001-07-29 21:56:14 +0000
commit3ea330259b3e8ef1484ee6356d792fede053a489 (patch)
treecb79b45cb37fb32e6839c2e933129c1a38b51663 /usr.bin/vmstat
parent15b6c360f7f4a7b51164181d9df88801fc1e9256 (diff)
downloadFreeBSD-src-3ea330259b3e8ef1484ee6356d792fede053a489.zip
FreeBSD-src-3ea330259b3e8ef1484ee6356d792fede053a489.tar.gz
Correct the old length argument passed to sysctl to be a pointer to a
size_t (not to an int). MFC after: 2 days
Diffstat (limited to 'usr.bin/vmstat')
-rw-r--r--usr.bin/vmstat/vmstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c
index 4556b25..55b62c3 100644
--- a/usr.bin/vmstat/vmstat.c
+++ b/usr.bin/vmstat/vmstat.c
@@ -405,7 +405,8 @@ dovmstat(interval, reps)
time_t uptime, halfuptime;
struct devinfo *tmp_dinfo;
void needhdr();
- int mib[2], size;
+ int mib[2];
+ size_t size;
uptime = getuptime();
halfuptime = uptime / 2;
OpenPOWER on IntegriCloud