svn commit: r281126 - head/tools/tools/ath/athstats
Adrian Chadd
adrian at FreeBSD.org
Mon Apr 6 00:35:00 UTC 2015
Author: adrian
Date: Mon Apr 6 00:34:59 2015
New Revision: 281126
URL: https://svnweb.freebsd.org/changeset/base/281126
Log:
Typecast things.
Modified:
head/tools/tools/ath/athstats/athstats.c
Modified: head/tools/tools/ath/athstats/athstats.c
==============================================================================
--- head/tools/tools/ath/athstats/athstats.c Sun Apr 5 23:06:42 2015 (r281125)
+++ head/tools/tools/ath/athstats/athstats.c Mon Apr 6 00:34:59 2015 (r281126)
@@ -796,10 +796,12 @@ ath_get_totstat(struct bsdstat *sf, int
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);
More information about the svn-src-all
mailing list