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
1 changed files with 1 additions and 1 deletions

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