Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
GBP: Revert back to using VppIpPrefix wrapper
[vpp.git]
/
src
/
vppinfra
/
heap.h
diff --git
a/src/vppinfra/heap.h
b/src/vppinfra/heap.h
index
8c1aae4
..
f76c945
100644
(file)
--- a/
src/vppinfra/heap.h
+++ b/
src/vppinfra/heap.h
@@
-137,7
+137,7
@@
typedef struct
format_function_t *format_elt;
format_function_t *format_elt;
- /* Used for validat
t
ion/debugging. */
+ /* Used for validation/debugging. */
uword *used_elt_bitmap;
/* First and last element of doubly linked chain of elements. */
uword *used_elt_bitmap;
/* First and last element of doubly linked chain of elements. */
@@
-150,7
+150,7
@@
typedef struct
u32 flags;
/* Static heaps are made from external memory given to
u32 flags;
/* Static heaps are made from external memory given to
- us by user and are not re-siz
e
able vectors. */
+ us by user and are not re-sizable vectors. */
#define HEAP_IS_STATIC (1)
} heap_header_t;
#define HEAP_IS_STATIC (1)
} heap_header_t;
@@
-220,7
+220,7
@@
uword heap_bytes (void *v);
always_inline void *
_heap_new (u32 len, u32 n_elt_bytes)
{
always_inline void *
_heap_new (u32 len, u32 n_elt_bytes)
{
- void *v = _vec_resize (0, len, (uword) len * n_elt_bytes,
+ void *v = _vec_resize (
(void *)
0, len, (uword) len * n_elt_bytes,
sizeof (heap_header_t),
HEAP_DATA_ALIGN);
heap_header (v)->elt_bytes = n_elt_bytes;
sizeof (heap_header_t),
HEAP_DATA_ALIGN);
heap_header (v)->elt_bytes = n_elt_bytes;