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>
This commit is contained in:
Eliad Peller 2016-03-02 14:38:41 +02:00 committed by Jouni Malinen
parent 2bf9a53a8b
commit 4a6e9e5599

View file

@ -369,8 +369,10 @@ void wpa_trace_check_ref(const void *addr)
void wpa_trace_deinit(void) void wpa_trace_deinit(void)
{ {
#ifdef WPA_TRACE_BFD
free(syms); free(syms);
syms = NULL; syms = NULL;
#endif /* WPA_TRACE_BFD */
} }
#endif /* WPA_TRACE */ #endif /* WPA_TRACE */