summaryrefslogtreecommitdiffstats
path: root/src/vnet/mfib
diff options
context:
space:
mode:
authorGabriel Ganne <gabriel.ganne@enea.com>2017-10-26 10:35:28 +0200
committerNeale Ranns <nranns@cisco.com>2017-10-26 15:40:55 +0000
commitd71e0fc2945d03ce628de979eca8ba8c82febf63 (patch)
treedf7d2b5efeed7b7879c51a118f1e4bffbafb5373 /src/vnet/mfib
parentdf58ea98f10ca0c83cba226f750e0e8d4061de97 (diff)
fib test - fix undefined behavior warning found by clang
warning: passing an object that undergoes default argument promotion to 'va_start' has undefined behavior [-Wvarargs] Change-Id: Ic9cfd61e38983bd67f30bf92f605e6c87d103ca5 Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
Diffstat (limited to 'src/vnet/mfib')
-rw-r--r--src/vnet/mfib/mfib_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/mfib/mfib_test.c b/src/vnet/mfib/mfib_test.c
index 3ec00a74aa8..2cb663a5eb6 100644
--- a/src/vnet/mfib/mfib_test.c
+++ b/src/vnet/mfib/mfib_test.c
@@ -232,7 +232,7 @@ fib_forw_chain_type_from_fib_proto (fib_protocol_t proto)
static int
mfib_test_entry (fib_node_index_t fei,
mfib_entry_flags_t eflags,
- u16 n_buckets,
+ int n_buckets,
...)
{
const mfib_entry_t *mfe;