summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/test_vec.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-17 18:29:32 +0100
committerDamjan Marion <dmarion@me.com>2022-03-18 13:16:30 +0000
commit05563c9a904b6bb862ba783dc3519c8415bf9cf5 (patch)
tree6243fbfe79969288ad233a45433f74fec75edb08 /src/vppinfra/test_vec.c
parenta4a28f04cb887ee690ccc9f563d06bf74fe18faf (diff)
vppinfra: deprecate vec_free_h()
vec_free() does the work Type: refactor Change-Id: I8a97607c3b2f58d116863642b32b55525dc15d88 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/test_vec.c')
-rw-r--r--src/vppinfra/test_vec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vppinfra/test_vec.c b/src/vppinfra/test_vec.c
index 28d945ee15f..cd461375893 100644
--- a/src/vppinfra/test_vec.c
+++ b/src/vppinfra/test_vec.c
@@ -259,7 +259,7 @@ validate_vec_free (elt_t * vec)
static elt_t *
validate_vec_free_h (elt_t * vec, uword hdr_bytes)
{
- vec_free_h (vec, hdr_bytes);
+ vec_free (vec);
ASSERT (vec == NULL);
return vec;
}
@@ -799,7 +799,7 @@ run_validator_wh (uword iter)
{
case OP_IS_VEC_INIT_H:
num_elts = bounded_random_u32 (&g_seed, 0, MAX_CHANGE);
- vec_free_h (vec, sizeof (hdr_t));
+ vec_free (vec);
VERBOSE2 ("vec_init_h(), new elts %d\n", num_elts);
vec = validate_vec_init_h (num_elts, sizeof (hdr_t));
break;
@@ -840,7 +840,7 @@ run_validator_wh (uword iter)
}
validate_vec (vec, sizeof (hdr_t));
- vec_free_h (vec, sizeof (hdr_t));
+ vec_free (vec);
}
static void