aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2016-03-02 12:38:41 (GMT)
committerJouni Malinen <j@w1.fi>2016-03-03 14:23:23 (GMT)
commit4a6e9e5599a71ce69ffac7acadca7a6da72f892a (patch)
tree9099f64d6d78b613ca49bc99728506e0e8f0615d /src/utils
parent2bf9a53a8bc0ea8bcae6c25cd9c0e00b71405434 (diff)
downloadhostap-4a6e9e5599a71ce69ffac7acadca7a6da72f892a.zip
hostap-4a6e9e5599a71ce69ffac7acadca7a6da72f892a.tar.gz
hostap-4a6e9e5599a71ce69ffac7acadca7a6da72f892a.tar.bz2
Fix CONFIG_WPA_TRACE=y compilation without CONFIG_WPA_TRACE_BFD=y
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@wizery.com>
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/trace.c2
1 files changed, 2 insertions, 0 deletions
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 */