eap_example: Get rid of a compiler warning
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
acc9a635c8
commit
ebdfdf1b9c
1 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,7 @@ struct eap_peer_ctx {
|
|||
Boolean portEnabled;
|
||||
Boolean altAccept; /* for EAP */
|
||||
Boolean altReject; /* for EAP */
|
||||
Boolean eapTriggerStart;
|
||||
|
||||
struct wpabuf *eapReqData; /* for EAP */
|
||||
|
||||
|
@ -71,6 +72,8 @@ static Boolean peer_get_bool(void *ctx, enum eapol_bool_var variable)
|
|||
return peer->altAccept;
|
||||
case EAPOL_altReject:
|
||||
return peer->altReject;
|
||||
case EAPOL_eapTriggerStart:
|
||||
return peer->eapTriggerStart;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -110,6 +113,9 @@ static void peer_set_bool(void *ctx, enum eapol_bool_var variable,
|
|||
case EAPOL_altReject:
|
||||
peer->altReject = value;
|
||||
break;
|
||||
case EAPOL_eapTriggerStart:
|
||||
peer->eapTriggerStart = value;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue