]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix a compiler warning on prototype mismatch
authorChien Wong <m@xv97.com>
Sun, 6 Aug 2023 15:15:48 +0000 (23:15 +0800)
committerJouni Malinen <j@w1.fi>
Fri, 11 Aug 2023 08:25:36 +0000 (11:25 +0300)
commit8f148d51322ff0276f621c80ae1c58b7a7acb8f5
treed083692888a08ebf498b0baac8b76c9d39c6d6c0
parent011775af9443d6f15e784e9ddf1dc215ed6fdc85
Fix a compiler warning on prototype mismatch

Fix 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,
      |     ^~~~~~~~~~~~~~~~~~~~~~~

Fixes: 1d4027fdbef2 ("Make random MAC address style parameters use common enum values")
Signed-off-by: Chien Wong <m@xv97.com>
wpa_supplicant/wpa_supplicant_i.h