svn commit: r244966 - head/tools/tools/ath/athratestats
Adrian Chadd
adrian at FreeBSD.org
Wed Jan 2 18:26:33 UTC 2013
Author: adrian
Date: Wed Jan 2 18:26:32 2013
New Revision: 244966
URL: http://svnweb.freebsd.org/changeset/base/244966
Log:
Fix some clang warnings!
Modified:
head/tools/tools/ath/athratestats/main.c
Modified: head/tools/tools/ath/athratestats/main.c
==============================================================================
--- head/tools/tools/ath/athratestats/main.c Wed Jan 2 18:21:24 2013 (r244965)
+++ head/tools/tools/ath/athratestats/main.c Wed Jan 2 18:26:32 2013 (r244966)
@@ -118,9 +118,9 @@ ath_sample_stats(struct ath_ratestats *r
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,
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,
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,
sizeof(struct ath_rateioctl_tlv));
ath_sample_stats(r, rt, sn);
+
+ return (0);
}
static void
More information about the svn-src-head
mailing list