vppinfra: make _vec_len() read-only
[vpp.git] / src / plugins / unittest / bihash_test.c
index c5cc752..0789735 100644 (file)
@@ -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)
     {