diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2003-12-10 19:24:11 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2003-12-10 19:24:11 +0000 |
commit | 869e10c88c600adc3c7bbb0d04efbc3b5c914838 (patch) | |
tree | d6c5247f1776e3b2534e2184316a011adf4720fa /usr.bin | |
parent | 3979795fb839332b98830ebfa3756e5c6e4001bb (diff) | |
download | FreeBSD-src-869e10c88c600adc3c7bbb0d04efbc3b5c914838.zip FreeBSD-src-869e10c88c600adc3c7bbb0d04efbc3b5c914838.tar.gz |
Fix a couple of warnings (const a function parameter and change some
ints to size_ts to better match the types of variables they are used
with).
Glanced at by: des
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 61bcbde..6c8ee6c 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -148,7 +148,7 @@ static void doforkst(void); static void domem(void); static void dointr(void); static void dosum(void); -static void dosysctl(char *); +static void dosysctl(const char *); static void dovmstat(u_int, int); static void dozmem(void); static void kread(int, void *, size_t); @@ -836,8 +836,7 @@ dointr(void) { u_long *intrcnt, uptime; u_int64_t inttotal; - size_t clen, nintr, inamlen; - int i, istrnamlen; + size_t clen, nintr, inamlen, i, istrnamlen; char *intrname, *tintrname; uptime = getuptime(); @@ -915,7 +914,7 @@ dozmem(void) } static void -dosysctl(char *name) +dosysctl(const char *name) { char *buf; size_t bufsize; |