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_kstack.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_kstack.c')
-rw-r--r-- | usr.bin/procstat/procstat_kstack.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/procstat/procstat_kstack.c b/usr.bin/procstat/procstat_kstack.c index c152388..bd7c34c 100644 --- a/usr.bin/procstat/procstat_kstack.c +++ b/usr.bin/procstat/procstat_kstack.c @@ -111,8 +111,8 @@ static int kinfo_kstack_compare(const void *a, const void *b) { - return ((struct kinfo_kstack *)a)->kkst_tid - - ((struct kinfo_kstack *)b)->kkst_tid; + return ((const struct kinfo_kstack *)a)->kkst_tid - + ((const struct kinfo_kstack *)b)->kkst_tid; } static void @@ -129,7 +129,8 @@ procstat_kstack(pid_t pid, struct kinfo_proc *kipp, int kflag) struct kinfo_kstack *kkstp, *kkstp_free; struct kinfo_proc *kip, *kip_free; char trace[KKST_MAXLEN]; - int error, i, j, name[4]; + int error, name[4]; + unsigned int i, j; size_t kip_len, kstk_len; if (!hflag) |