diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-17 15:46:25 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-03-18 13:16:24 +0000 |
commit | a4a28f04cb887ee690ccc9f563d06bf74fe18faf (patch) | |
tree | 13d960091319496e1625dae4db25091764ce30c7 /src/vppinfra/vec.c | |
parent | 86bbdf926c6d642e789ad6dce6534c23820f3c63 (diff) |
vppinfra: use stored vec header size to find header
Type: refactor
Change-Id: Iaa1e43c87c5725ab33ea8489bff2a7bda18b9c79
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vppinfra/vec.c')
-rw-r--r-- | src/vppinfra/vec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/vec.c b/src/vppinfra/vec.c index 97e2762ecbf..db84c1463a0 100644 --- a/src/vppinfra/vec.c +++ b/src/vppinfra/vec.c @@ -154,7 +154,7 @@ vec_resize_allocate_memory (void *v, __clib_export uword clib_mem_is_vec_h (void *v, uword header_bytes) { - return clib_mem_is_heap_object (vec_header (v, header_bytes)); + return clib_mem_is_heap_object (vec_header (v)); } __clib_export u32 |