diff options
author | tmm <tmm@FreeBSD.org> | 2001-07-29 21:56:14 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-07-29 21:56:14 +0000 |
commit | 3ea330259b3e8ef1484ee6356d792fede053a489 (patch) | |
tree | cb79b45cb37fb32e6839c2e933129c1a38b51663 /usr.bin/vmstat | |
parent | 15b6c360f7f4a7b51164181d9df88801fc1e9256 (diff) | |
download | FreeBSD-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.c | 3 |
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; |