vppinfra: make _vec_len() read-only
[vpp.git] / src / vnet / dpo / load_balance_map.c
index 5524974..765cd85 100644 (file)
@@ -317,7 +317,7 @@ load_balance_map_fill (load_balance_map_t *lbm)
             bucket += lbmp->lbmp_weight;
         }
     }
-    _vec_len(tmp_buckets) = jj;
+    vec_set_len (tmp_buckets, jj);
 
     /*
      * If the number of temporaries written is as many as we need, implying