Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
misc: clang-12 support
[vpp.git]
/
src
/
vnet
/
fib
/
fib_entry_src.h
diff --git
a/src/vnet/fib/fib_entry_src.h
b/src/vnet/fib/fib_entry_src.h
index
248cf6c
..
ced6b5c
100644
(file)
--- a/
src/vnet/fib/fib_entry_src.h
+++ b/
src/vnet/fib/fib_entry_src.h
@@
-248,12
+248,8
@@
typedef struct fib_entry_src_vft_t_ {
} \
}
} \
}
-#define FIB_ENTRY_SRC_VFT_EXISTS(esrc, func) \
-{ \
- const fib_entry_src_vft_t *_vft; \
- _vft = fib_entry_src_get_vft(esrc); \
- (_vft->func); \
-}
+#define FIB_ENTRY_SRC_VFT_EXISTS(esrc, func) \
+ (fib_entry_src_get_vft(esrc)->func != 0)
extern const fib_entry_src_vft_t*fib_entry_src_get_vft(
const fib_entry_src_t *esrc);
extern const fib_entry_src_vft_t*fib_entry_src_get_vft(
const fib_entry_src_t *esrc);