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
/
vppinfra
/
test_bihash_template.c
diff --git
a/src/vppinfra/test_bihash_template.c
b/src/vppinfra/test_bihash_template.c
index
ffed5c7
..
155b8bd
100644
(file)
--- a/
src/vppinfra/test_bihash_template.c
+++ b/
src/vppinfra/test_bihash_template.c
@@
-522,8
+522,7
@@
test_bihash_main (test_main_t * tm)
/* 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)
{