3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

simutil: fixup adding const to data pointer

eap_sim_add_attribute() was not taking a const uint8_t * as
it should.
This commit is contained in:
James Prestwood 2017-10-17 15:37:59 -07:00 committed by Denis Kenzior
parent 32907c10df
commit 8ce787557f
2 changed files with 2 additions and 2 deletions

View File

@ -469,7 +469,7 @@ void eap_sim_client_error(struct eap_state *eap, enum eap_type type,
}
size_t eap_sim_add_attribute(uint8_t *buf, enum eap_sim_at attr,
uint8_t ptype, uint8_t *data, uint16_t dlen)
uint8_t ptype, const uint8_t *data, uint16_t dlen)
{
int i;
uint8_t pos = 0;

View File

@ -256,7 +256,7 @@ void eap_sim_client_error(struct eap_state *eap, enum eap_type type,
* Returns the number of bytes written to buf.
*/
size_t eap_sim_add_attribute(uint8_t *buf, enum eap_sim_at attr,
uint8_t ptype, uint8_t *data, uint16_t dlen);
uint8_t ptype, const uint8_t *data, uint16_t dlen);
/*
* Verify a packets MAC