[PATCH] Fix compilation without WPA_TRACE_BFD=y
Eliad Peller
eliad at wizery.com
Wed Mar 2 04:38:41 PST 2016
syms is defined only for WPA_TRACE_BFD:
../src/utils/trace.c: In function ‘wpa_trace_deinit’:
../src/utils/trace.c:372:7: error: ‘syms’ undeclared (first use in this function)
free(syms);
^
../src/utils/trace.c:372:7: note: each undeclared identifier is reported only once for each function it appears in
make: *** [../src/utils/trace.o] Error 1
make: *** Waiting for unfinished jobs....
Add appropriate #ifdef.
Signed-off-by: Eliad Peller <eliad at wizery.com>
---
src/utils/trace.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/utils/trace.c b/src/utils/trace.c
index d98c4b0..d72cf60 100644
--- a/src/utils/trace.c
+++ b/src/utils/trace.c
@@ -369,8 +369,10 @@ void wpa_trace_check_ref(const void *addr)
void wpa_trace_deinit(void)
{
+#ifdef WPA_TRACE_BFD
free(syms);
syms = NULL;
+#endif /* WPA_TRACE_BFD */
}
#endif /* WPA_TRACE */
--
2.6.3
More information about the Hostap
mailing list