[PATCH] Fix a compiler warning on prototype mismatch

Jouni Malinen j at w1.fi
Fri Aug 11 02:25:02 PDT 2023


On Mon, Aug 07, 2023 at 05:55:00PM +0800, Chien Wong wrote:
> Fixed the warning:
> wpa_supplicant.c:2257:5: warning: conflicting types for
> ‘wpas_update_random_addr’ due to enum/integer mismatch; have ‘int(struct
> wpa_supplicant *, enum wpas_mac_addr_style,  struct wpa_ssid *)’
> [-Wenum-int-mismatch]
>  2257 | int wpas_update_random_addr(struct wpa_supplicant *wpa_s,
>       |     ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from wpa_supplicant.c:32:
> wpa_supplicant_i.h:1653:5: note: previous declaration of
> ‘wpas_update_random_addr’ with type ‘int(struct wpa_supplicant *, int, 
> struct wpa_ssid *)’
>  1653 | int wpas_update_random_addr(struct wpa_supplicant *wpa_s, int style,
>       |     ^~~~~~~~~~~~~~~~~~~~~~~

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list