WPA_TRACE_REF() provides optional content, potentially leaving an extra
semicolon within the struct declarator list. This is not permitted according to C99 "6.7.2.1 Structure and union specifiers", so instead have the macro provide the semicolon as required.
This commit is contained in:
parent
ea7708e17f
commit
eb32d0353f
|
@ -70,7 +70,7 @@ struct wpa_driver_test_global {
|
|||
struct wpa_driver_test_data {
|
||||
struct wpa_driver_test_global *global;
|
||||
void *ctx;
|
||||
WPA_TRACE_REF(ctx);
|
||||
WPA_TRACE_REF(ctx)
|
||||
u8 own_addr[ETH_ALEN];
|
||||
int test_socket;
|
||||
#ifdef DRIVER_TEST_UNIX
|
||||
|
|
|
@ -25,8 +25,8 @@ struct eloop_sock {
|
|||
void *eloop_data;
|
||||
void *user_data;
|
||||
eloop_sock_handler handler;
|
||||
WPA_TRACE_REF(eloop);
|
||||
WPA_TRACE_REF(user);
|
||||
WPA_TRACE_REF(eloop)
|
||||
WPA_TRACE_REF(user)
|
||||
WPA_TRACE_INFO
|
||||
};
|
||||
|
||||
|
@ -36,8 +36,8 @@ struct eloop_timeout {
|
|||
void *eloop_data;
|
||||
void *user_data;
|
||||
eloop_timeout_handler handler;
|
||||
WPA_TRACE_REF(eloop);
|
||||
WPA_TRACE_REF(user);
|
||||
WPA_TRACE_REF(eloop)
|
||||
WPA_TRACE_REF(user)
|
||||
WPA_TRACE_INFO
|
||||
};
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ struct wpa_trace_ref {
|
|||
const void *addr;
|
||||
WPA_TRACE_INFO
|
||||
};
|
||||
#define WPA_TRACE_REF(name) struct wpa_trace_ref wpa_trace_ref_##name
|
||||
#define WPA_TRACE_REF(name) struct wpa_trace_ref wpa_trace_ref_##name;
|
||||
|
||||
#define wpa_trace_dump(title, ptr) \
|
||||
wpa_trace_dump_func((title), (ptr)->btrace, (ptr)->btrace_num)
|
||||
|
|
Loading…
Reference in New Issue