diff options
author | Dave Barach <dave@barachs.net> | 2016-12-16 09:20:04 -0500 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2016-12-16 20:31:18 +0000 |
commit | bd6462e16a55a63561bfaaf75018aa378f201343 (patch) | |
tree | b7acae918e636950957c9229003a556a6f610c15 /plugins/acl-plugin/acl | |
parent | d6900496dd3ecc807fb2936d3b1bb8f58a2ddf29 (diff) |
Coverity fixes, VPP-486
Change-Id: I8906bb983128e8f6e2664e367d2015325c1125fb
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'plugins/acl-plugin/acl')
-rw-r--r-- | plugins/acl-plugin/acl/l2sess_node.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/acl-plugin/acl/l2sess_node.c b/plugins/acl-plugin/acl/l2sess_node.c index d83029ea055..520e5929b4b 100644 --- a/plugins/acl-plugin/acl/l2sess_node.c +++ b/plugins/acl-plugin/acl/l2sess_node.c @@ -463,7 +463,7 @@ session_is_alive (l2sess_main_t * sm, l2s_session_t * sess, u64 now, u64 *last_a return is_alive; } -void +static void check_idle_sessions (l2sess_main_t * sm, u32 sw_if_index, u64 now) { sm->timer_wheel_next_expiring_time = 0; @@ -493,7 +493,7 @@ check_idle_sessions (l2sess_main_t * sm, u32 sw_if_index, u64 now) if (PREDICT_FALSE (_vec_len (sm->data_from_advancing_timing_wheel) > 0)) { uword i; - for (i = 0; i < vec_len (sm->data_from_advancing_timing_wheel); i++) + for (i = 0; i < _vec_len (sm->data_from_advancing_timing_wheel); i++) { u32 session_index = sm->data_from_advancing_timing_wheel[i]; if (!pool_is_free_index (sm->sessions, session_index)) |