Cast uint32_t into unsigned int for compatibility with cygwin
authorfmoatamr
Mon Sep 07 11:45:05 2009 +0200 (5 months ago)
changeset 4759a18ac083ec51
parent 4758 0f9bcd407aff
child 4760 f774ff724ee4
Cast uint32_t into unsigned int for compatibility with cygwin
src/helper/athstats-helper.cc
     1.1 --- a/src/helper/athstats-helper.cc	Sat Sep 05 16:31:07 2009 -0700
     1.2 +++ b/src/helper/athstats-helper.cc	Mon Sep 07 11:45:05 2009 +0200
     1.3 @@ -278,17 +278,17 @@
     1.4    // I know C strings are ugly but that's the quickest way to use exactly the same format as in madwifi
     1.5    char str[200];
     1.6    snprintf (str, 200, "%8u %8u %7u %7u %7u %6u %6u %6u %7u %4u %3uM\n",
     1.7 -           m_txCount, // /proc/net/dev transmitted packets to which we should subract mgmt frames
     1.8 -           m_rxCount, // /proc/net/dev received packets but subracts mgmt frames from it
     1.9 -           0,         // ast_tx_altrate,
    1.10 -           m_shortRetryCount,     // ast_tx_shortretry,
    1.11 -           m_longRetryCount,      // ast_tx_longretry,
    1.12 -           m_exceededRetryCount,  // ast_tx_xretries,
    1.13 -           m_phyRxErrorCount,     // ast_rx_crcerr,
    1.14 -           0,         // ast_rx_badcrypt,
    1.15 -           0,         // ast_rx_phyerr,
    1.16 -           0,         // ast_rx_rssi,
    1.17 -           0          // rate
    1.18 +           (unsigned int) m_txCount, // /proc/net/dev transmitted packets to which we should subract mgmt frames
    1.19 +           (unsigned int) m_rxCount, // /proc/net/dev received packets but subracts mgmt frames from it
    1.20 +           (unsigned int) 0,         // ast_tx_altrate,
    1.21 +           (unsigned int) m_shortRetryCount,     // ast_tx_shortretry,
    1.22 +           (unsigned int) m_longRetryCount,      // ast_tx_longretry,
    1.23 +           (unsigned int) m_exceededRetryCount,  // ast_tx_xretries,
    1.24 +           (unsigned int) m_phyRxErrorCount,     // ast_rx_crcerr,
    1.25 +           (unsigned int) 0,         // ast_rx_badcrypt,
    1.26 +           (unsigned int) 0,         // ast_rx_phyerr,
    1.27 +           (unsigned int) 0,         // ast_rx_rssi,
    1.28 +           (unsigned int) 0          // rate
    1.29             );
    1.30  
    1.31    if (m_writer)