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
/
plugins
/
unittest
/
bihash_test.c
diff --git
a/src/plugins/unittest/bihash_test.c
b/src/plugins/unittest/bihash_test.c
index
c5cc752
..
0789735
100644
(file)
--- a/
src/plugins/unittest/bihash_test.c
+++ b/
src/plugins/unittest/bihash_test.c
@@
-512,7
+512,7
@@
test_bihash_command_fn (vlib_main_t * vm,
/* Preallocate hash table, key vector */
tm->key_hash = hash_create (tm->nitems, sizeof (uword));
vec_validate (tm->keys, tm->nitems - 1);
-
_vec_len (tm->keys) = 0
;
+
vec_set_len (tm->keys, 0)
;
switch (which)
{