diff options
author | adrian <adrian@FreeBSD.org> | 2013-01-02 18:26:32 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-01-02 18:26:32 +0000 |
commit | c3f438d7f8ad39a7ac6aef786d11934a7188edcd (patch) | |
tree | 201451ffda1e7305bb8aba0c82cc15d2c27bfe9c /tools | |
parent | e2599129bc514805e53d83964c6a0414649607f7 (diff) | |
download | FreeBSD-src-c3f438d7f8ad39a7ac6aef786d11934a7188edcd.zip FreeBSD-src-c3f438d7f8ad39a7ac6aef786d11934a7188edcd.tar.gz |
Fix some clang warnings!
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/ath/athratestats/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/tools/ath/athratestats/main.c b/tools/tools/ath/athratestats/main.c index 4203c9b..ed3af2b 100644 --- a/tools/tools/ath/athratestats/main.c +++ b/tools/tools/ath/athratestats/main.c @@ -118,9 +118,9 @@ ath_sample_stats(struct ath_ratestats *r, struct ath_rateioctl_rt *rt, uint32_t mask; int rix, y; - PRINTMSG("static_rix (%d) ratemask 0x%x\n", + PRINTMSG("static_rix (%d) ratemask 0x%llx\n", sn->static_rix, - sn->ratemask); + (long long) sn->ratemask); for (y = 0; y < NUM_PACKET_SIZE_BINS; y++) { PRINTATTR_ON(COLOR_PAIR(y+4) | A_BOLD); @@ -241,7 +241,7 @@ rate_node_stats(struct ath_ratestats *r, struct ether_addr *e) fprintf(stderr, "unexpected TLV len (got %d bytes, " "expected %d bytes\n", av->tlv_len, - sizeof(struct ath_rateioctl_rt)); + (int) sizeof(struct ath_rateioctl_rt)); exit(127); } rt = (void *) (buf + sizeof(struct ath_rateioctl_tlv)); @@ -260,7 +260,7 @@ rate_node_stats(struct ath_ratestats *r, struct ether_addr *e) fprintf(stderr, "unexpected TLV len (got %d bytes, " "expected %d bytes\n", av->tlv_len, - sizeof(struct sample_node)); + (int) sizeof(struct sample_node)); exit(127); } sn = (void *) (buf + sizeof(struct ath_rateioctl_tlv) + @@ -268,6 +268,8 @@ rate_node_stats(struct ath_ratestats *r, struct ether_addr *e) sizeof(struct ath_rateioctl_tlv)); ath_sample_stats(r, rt, sn); + + return (0); } static void |