summaryrefslogtreecommitdiffstats
path: root/src/plugins/cdp/cdp_periodic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cdp/cdp_periodic.c')
-rw-r--r--src/plugins/cdp/cdp_periodic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cdp/cdp_periodic.c b/src/plugins/cdp/cdp_periodic.c
index c73d86be316..295cf8fcfb1 100644
--- a/src/plugins/cdp/cdp_periodic.c
+++ b/src/plugins/cdp/cdp_periodic.c
@@ -394,9 +394,9 @@ cdp_periodic (vlib_main_t * vm)
delete_neighbor (cm, n, 1);
}
if (delete_list)
- _vec_len (delete_list) = 0;
+ vec_set_len (delete_list, 0);
if (n_list)
- _vec_len (n_list) = 0;
+ vec_set_len (n_list, 0);
}
static clib_error_t *