wap supplicant: Fix problem of multiple declaration of fn_destroy
authorEunBong Song <eunb.song@samsung.com>
Mon, 31 Jul 2017 08:24:22 +0000 (01:24 -0700)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:48 +0000 (21:15 -0700)
This patch fixes multiple declaration of fn_destroy. This can cause linking
error when kasan is enabled.

Change-Id: I07221ca05b3952b42ddae247b307cd2909a909d2
Signed-off-by: EunBong Song <eunb.song@samsung.com>
apps/wpa_supplicant/src/utils/eloop.h
apps/wpa_supplicant/wpa_supplicant/events.c

index 5fb7e45..8462608 100644 (file)
@@ -344,5 +344,5 @@ int eloop_terminated(void);
  */
 void eloop_wait_for_read_sock(int sock);
 
-eloop_timeout_handler fn_destroy;
+extern eloop_timeout_handler fn_destroy;
 #endif                                                 /* ELOOP_H */
index 57007a9..a98d731 100644 (file)
@@ -46,6 +46,8 @@
 #include "mesh_mpm.h"
 #include "wmm_ac.h"
 
+eloop_timeout_handler fn_destroy;
+
 #ifndef CONFIG_NO_SCAN_PROCESSING
 static int wpas_select_network_from_last_scan(struct wpa_supplicant *wpa_s, int new_scan, int own_request);
 #endif                                                 /* CONFIG_NO_SCAN_PROCESSING */