mka: Return u8 from get_mka_param_body_type()
This uses a more accurate variable type for body_type and makes it cleaner to compare this to other unsigned values. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
ac285c007c
commit
65b47738e8
1 changed files with 4 additions and 4 deletions
|
@ -98,7 +98,7 @@ static unsigned int get_mka_param_body_len(const void *body)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int get_mka_param_body_type(const void *body)
|
static u8 get_mka_param_body_type(const void *body)
|
||||||
{
|
{
|
||||||
const struct ieee802_1x_mka_hdr *hdr = body;
|
const struct ieee802_1x_mka_hdr *hdr = body;
|
||||||
return hdr->type;
|
return hdr->type;
|
||||||
|
@ -919,7 +919,7 @@ ieee802_1x_mka_i_in_peerlist(struct ieee802_1x_mka_participant *participant,
|
||||||
struct ieee802_1x_mka_hdr *hdr;
|
struct ieee802_1x_mka_hdr *hdr;
|
||||||
size_t body_len;
|
size_t body_len;
|
||||||
size_t left_len;
|
size_t left_len;
|
||||||
int body_type;
|
u8 body_type;
|
||||||
u32 peer_mn;
|
u32 peer_mn;
|
||||||
be32 _peer_mn;
|
be32 _peer_mn;
|
||||||
const u8 *peer_mi;
|
const u8 *peer_mi;
|
||||||
|
@ -1762,7 +1762,7 @@ ieee802_1x_mka_decode_icv_body(struct ieee802_1x_mka_participant *participant,
|
||||||
struct ieee802_1x_mka_icv_body *body;
|
struct ieee802_1x_mka_icv_body *body;
|
||||||
size_t body_len;
|
size_t body_len;
|
||||||
size_t left_len;
|
size_t left_len;
|
||||||
int body_type;
|
u8 body_type;
|
||||||
const u8 *pos;
|
const u8 *pos;
|
||||||
|
|
||||||
pos = mka_msg;
|
pos = mka_msg;
|
||||||
|
@ -2977,7 +2977,7 @@ static int ieee802_1x_kay_decode_mkpdu(struct ieee802_1x_kay *kay,
|
||||||
struct ieee802_1x_mka_hdr *hdr;
|
struct ieee802_1x_mka_hdr *hdr;
|
||||||
size_t body_len;
|
size_t body_len;
|
||||||
size_t left_len;
|
size_t left_len;
|
||||||
int body_type;
|
u8 body_type;
|
||||||
int i;
|
int i;
|
||||||
const u8 *pos;
|
const u8 *pos;
|
||||||
Boolean my_included;
|
Boolean my_included;
|
||||||
|
|
Loading…
Reference in a new issue