Date: Wed, 2 Jan 2013 18:29:11 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r244967 - head/tools/tools/ath/athratestats Message-ID: <201301021829.r02ITBnA039729@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: adrian Date: Wed Jan 2 18:29:11 2013 New Revision: 244967 URL: http://svnweb.freebsd.org/changeset/base/244967 Log: Fix some conversions to keep clang happy. 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:26:32 2013 (r244966) +++ head/tools/tools/ath/athratestats/main.c Wed Jan 2 18:29:11 2013 (r244967) @@ -203,7 +203,7 @@ ath_setifname(struct ath_ratestats *r, c } 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 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301021829.r02ITBnA039729>