mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
wscutil: Fix invalid type conversion
We should be assigning to an enum type instead of a uint8. This showed up on PowerPC where the endianness affected the result.
This commit is contained in:
parent
af0e432e0f
commit
44463389f1
@ -518,7 +518,7 @@ static bool extract_version(struct wsc_attr_iter *iter, void *data)
|
||||
|
||||
static bool extract_wsc_state(struct wsc_attr_iter *iter, void *data)
|
||||
{
|
||||
uint8_t *out = data;
|
||||
enum wsc_state *out = data;
|
||||
uint8_t st;
|
||||
|
||||
if (!extract_uint8(iter, &st))
|
||||
|
Loading…
Reference in New Issue
Block a user