diff options
author | adrian <adrian@FreeBSD.org> | 2015-04-06 00:34:59 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2015-04-06 00:34:59 +0000 |
commit | 80648dff8a2725593b6d4fc3c0a718fca9cc3d74 (patch) | |
tree | c3dfd9cc0e1b2f00cdca4b320728a98aad95bddb | |
parent | cf28b0945a1c59bf45b1597ca00e2d7a869cdd61 (diff) | |
download | FreeBSD-src-80648dff8a2725593b6d4fc3c0a718fca9cc3d74.zip FreeBSD-src-80648dff8a2725593b6d4fc3c0a718fca9cc3d74.tar.gz |
Typecast things.
-rw-r--r-- | tools/tools/ath/athstats/athstats.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/tools/ath/athstats/athstats.c b/tools/tools/ath/athstats/athstats.c index 10b2f1f..82b5620 100644 --- a/tools/tools/ath/athstats/athstats.c +++ b/tools/tools/ath/athstats/athstats.c @@ -796,10 +796,12 @@ ath_get_totstat(struct bsdstat *sf, int s, char b[], size_t bs) switch (s) { case S_INPUT: snprintf(b, bs, "%lu", - wf->total.ath.ast_rx_packets - wf->total.ath.ast_rx_mgt); + (unsigned long) wf->total.ath.ast_rx_packets - + (unsigned long) wf->total.ath.ast_rx_mgt); return 1; case S_OUTPUT: - snprintf(b, bs, "%lu", wf->total.ath.ast_tx_packets); + snprintf(b, bs, "%lu", + (unsigned long) wf->total.ath.ast_tx_packets); return 1; case S_RATE: snprintrate(b, bs, wf->total.ath.ast_tx_rate); |