diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2008-02-08 11:03:05 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2008-02-08 11:03:05 +0000 |
commit | 889b35d148aba305acea223c87e5cab964888c58 (patch) | |
tree | a3e03d3d44456b391924e9297d7e221a166713b1 /usr.bin/procstat/procstat_vm.c | |
parent | 90972e91da57364a785ba7ab812be8a369e46547 (diff) | |
download | FreeBSD-src-889b35d148aba305acea223c87e5cab964888c58.zip FreeBSD-src-889b35d148aba305acea223c87e5cab964888c58.tar.gz |
WARNS fixes: mainly constness and avoid comparing signed with
unsigned by making array indicies unsigned. Also note one or two
unused parameters.
Diffstat (limited to 'usr.bin/procstat/procstat_vm.c')
-rw-r--r-- | usr.bin/procstat/procstat_vm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/procstat/procstat_vm.c b/usr.bin/procstat/procstat_vm.c index 5a00587..a658382 100644 --- a/usr.bin/procstat/procstat_vm.c +++ b/usr.bin/procstat/procstat_vm.c @@ -38,10 +38,11 @@ #include "procstat.h" void -procstat_vm(pid_t pid, struct kinfo_proc *kipp) +procstat_vm(pid_t pid, struct kinfo_proc *kipp __unused) { struct kinfo_vmentry *freep, *kve; - int error, i, name[4], ptrwidth; + int error, name[4], ptrwidth; + unsigned int i; const char *str; size_t len; |