3
0
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:
Denis Kenzior 2017-08-30 16:58:14 -05:00
parent af0e432e0f
commit 44463389f1

View File

@ -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))