From 44463389f10644fae72d394cc08306b8175defdc Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 30 Aug 2017 16:58:14 -0500 Subject: [PATCH] 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. --- src/wscutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wscutil.c b/src/wscutil.c index d8c29e8d..71e53d62 100644 --- a/src/wscutil.c +++ b/src/wscutil.c @@ -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))