summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.h
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-02-22 12:40:53 +0000
committerDamjan Marion <dmarion@me.com>2019-02-22 18:17:20 +0000
commit8f215b4a03a98bf94931a09b23ab0fbd8ccd1ab9 (patch)
treea4fbf22772d12fe76368ab826d754b407ff6bdd9 /src/vnet/interface.h
parenta68d07a2391b2a1db4c342796924e60fc39e31b6 (diff)
Callback functions must have the correct signature
Change-Id: I642823bdc3c7006a0b719ec1e3a9cd75b2b37253 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r--src/vnet/interface.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h
index 5c418593a42..ec76057478f 100644
--- a/src/vnet/interface.h
+++ b/src/vnet/interface.h
@@ -131,7 +131,7 @@ static void __vnet_interface_function_deinit_##tag##_##f (void) \
{ \
vnet_main_t * vnm = vnet_get_main(); \
_vnet_interface_function_list_elt_t *next; \
- if (vnm->tag##_functions[p]->fp == (void *) &f) \
+ if (vnm->tag##_functions[p]->fp == f) \
{ \
vnm->tag##_functions[p] = \
vnm->tag##_functions[p]->next_interface_function; \
@@ -140,7 +140,7 @@ static void __vnet_interface_function_deinit_##tag##_##f (void) \
next = vnm->tag##_functions[p]; \
while (next->next_interface_function) \
{ \
- if (next->next_interface_function->fp == (void *) &f) \
+ if (next->next_interface_function->fp == f) \
{ \
next->next_interface_function = \
next->next_interface_function->next_interface_function; \