aboutsummaryrefslogtreecommitdiffstats
path: root/mac80211_hwsim
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-24 11:42:26 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-24 11:42:26 (GMT)
commiteaca46532fa14f7a3c6068380c1cbab2f01d21cd (patch)
tree9b76e0bbd69941d2a77a1882fa63a340beb97303 /mac80211_hwsim
parentab41595f3524e397107c82213ed5b1cac8ce09bf (diff)
downloadhostap-eaca46532fa14f7a3c6068380c1cbab2f01d21cd.zip
hostap-eaca46532fa14f7a3c6068380c1cbab2f01d21cd.tar.gz
hostap-eaca46532fa14f7a3c6068380c1cbab2f01d21cd.tar.bz2
hwsim_test: Use unsigned bit variables
Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'mac80211_hwsim')
-rw-r--r--mac80211_hwsim/tools/hwsim_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mac80211_hwsim/tools/hwsim_test.c b/mac80211_hwsim/tools/hwsim_test.c
index 75e5984..fc2833c 100644
--- a/mac80211_hwsim/tools/hwsim_test.c
+++ b/mac80211_hwsim/tools/hwsim_test.c
@@ -50,10 +50,10 @@ static void tx(int s, const char *ifname, int ifindex,
struct rx_result {
- int rx_unicast1:1;
- int rx_broadcast1:1;
- int rx_unicast2:1;
- int rx_broadcast2:1;
+ unsigned int rx_unicast1:1;
+ unsigned int rx_broadcast1:1;
+ unsigned int rx_unicast2:1;
+ unsigned int rx_broadcast2:1;
};
@@ -221,8 +221,8 @@ int main(int argc, char *argv[])
if (ret) {
printf("Did not receive all expected frames:\n"
- "rx_unicast1=%d rx_broadcast1=%d "
- "rx_unicast2=%d rx_broadcast2=%d\n",
+ "rx_unicast1=%u rx_broadcast1=%u "
+ "rx_unicast2=%u rx_broadcast2=%u\n",
res.rx_unicast1, res.rx_broadcast1,
res.rx_unicast2, res.rx_broadcast2);
} else {