Use unsigned bitfield for 1-bit values

This commit is contained in:
Jouni Malinen 2010-04-11 12:27:13 +03:00
parent 9efc3f2a4b
commit 8d6399e455
2 changed files with 5 additions and 5 deletions

View file

@ -76,9 +76,9 @@ struct tls_connection {
u8 *session_ticket;
size_t session_ticket_len;
int ca_cert_verify:1;
int cert_probe:1;
int server_cert_only:1;
unsigned int ca_cert_verify:1;
unsigned int cert_probe:1;
unsigned int server_cert_only:1;
u8 srv_cert_hash[32];
};

View file

@ -29,8 +29,8 @@ struct eap_tnc_data {
struct wpabuf *out_buf;
size_t out_used;
size_t fragment_size;
int was_done:1;
int was_fail:1;
unsigned int was_done:1;
unsigned int was_fail:1;
};