Re: [PATCH] Fix a compiler warning on prototype mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux