Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: make _vec_len() read-only
[vpp.git]
/
src
/
vpp
/
api
/
plugin.c
diff --git
a/src/vpp/api/plugin.c
b/src/vpp/api/plugin.c
index
3d89161
..
e7ca874
100644
(file)
--- a/
src/vpp/api/plugin.c
+++ b/
src/vpp/api/plugin.c
@@
-170,7
+170,7
@@
vat_load_new_plugins (plugin_main_t * pm)
{
vec_free (file_name);
vec_free (plugin_name);
-
_vec_len (pm->plugin_info) = vec_len (pm->plugin_info) - 1
;
+
vec_set_len (pm->plugin_info, vec_len (pm->plugin_info) - 1)
;
continue;
}
hash_set_mem (pm->plugin_by_name_hash, plugin_name,