Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
udp: support close with data
[vpp.git]
/
src
/
vppinfra
/
heap.h
diff --git
a/src/vppinfra/heap.h
b/src/vppinfra/heap.h
index
f76c945
..
22fc335
100644
(file)
--- a/
src/vppinfra/heap.h
+++ b/
src/vppinfra/heap.h
@@
-204,7
+204,7
@@
_heap_dup (void *v_old, uword v_bytes)
HEAP_DATA_ALIGN);
h_new = heap_header (v_new);
heap_dup_header (h_old, h_new);
HEAP_DATA_ALIGN);
h_new = heap_header (v_new);
heap_dup_header (h_old, h_new);
- clib_memcpy (v_new, v_old, v_bytes);
+ clib_memcpy
_fast
(v_new, v_old, v_bytes);
return v_new;
}
return v_new;
}
@@
-260,7
+260,7
@@
heap_create_from_memory (void *memory, uword max_len, uword elt_bytes)
return 0;
h = memory;
return 0;
h = memory;
- memset (h, 0, sizeof (h[0]));
+
clib_
memset (h, 0, sizeof (h[0]));
h->max_len = max_len;
h->elt_bytes = elt_bytes;
h->flags = HEAP_IS_STATIC;
h->max_len = max_len;
h->elt_bytes = elt_bytes;
h->flags = HEAP_IS_STATIC;