summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2013-01-02 18:29:11 +0000
committeradrian <adrian@FreeBSD.org>2013-01-02 18:29:11 +0000
commit48278ccb6093dcd49c14aaf99c446dc061123ab6 (patch)
tree87f708bed6ec23dc4db9c881c7ae052f0eebc668 /tools
parentc3f438d7f8ad39a7ac6aef786d11934a7188edcd (diff)
downloadFreeBSD-src-48278ccb6093dcd49c14aaf99c446dc061123ab6.zip
FreeBSD-src-48278ccb6093dcd49c14aaf99c446dc061123ab6.tar.gz
Fix some conversions to keep clang happy.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/ath/athratestats/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/tools/ath/athratestats/main.c b/tools/tools/ath/athratestats/main.c
index ed3af2b..8d146ca 100644
--- a/tools/tools/ath/athratestats/main.c
+++ b/tools/tools/ath/athratestats/main.c
@@ -203,7 +203,7 @@ ath_setifname(struct ath_ratestats *r, const char *ifname)
}
static void
-ath_setsta(struct ath_ratestats *r, const char *mac)
+ath_setsta(struct ath_ratestats *r, uint8_t *mac)
{
memcpy(&r->re.is_u.macaddr, mac, sizeof(r->re.is_u.macaddr));
@@ -224,7 +224,7 @@ rate_node_stats(struct ath_ratestats *r, struct ether_addr *e)
struct sample_node *sn = NULL;
struct ath_rateioctl_rt *rt = NULL;
int error = 0;
- uint8_t *buf = r->re.buf;
+ uint8_t *buf = (uint8_t *) r->re.buf;
/*
* For now, hard-code the TLV order and contents. Ew!
@@ -355,7 +355,7 @@ main(int argc, char *argv[])
if (buf == NULL)
err(1, "calloc");
- r.re.buf = buf;
+ r.re.buf = (char *) buf;
r.re.len = STATS_BUF_SIZE;
r.s = socket(AF_INET, SOCK_DGRAM, 0);
OpenPOWER on IntegriCloud