Convert signed bit field to unsigned one
authorJouni Malinen <j@w1.fi>
Sun, 16 Oct 2011 10:21:54 +0000 (13:21 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Oct 2011 10:21:54 +0000 (13:21 +0300)
It's cleaner to use unsigned bit field with one bit values.

wpa_supplicant/gas_query.c

index 0011017..1ac185a 100644 (file)
@@ -33,8 +33,8 @@ struct gas_query_pending {
        u8 addr[ETH_ALEN];
        u8 dialog_token;
        u8 next_frag_id;
-       int wait_comeback:1;
-       int offchannel_tx_started:1;
+       unsigned int wait_comeback:1;
+       unsigned int offchannel_tx_started:1;
        int freq;
        u16 status_code;
        struct wpabuf *adv_proto;