http://git.etherboot.org
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed _calloc() to zalloc(), ready to be used as a standalone function.
[gpxe.git]
/
src
/
core
/
malloc.c
diff --git
a/src/core/malloc.c
b/src/core/malloc.c
index
6dfdd63
..
bf94592
100644
(file)
--- a/
src/core/malloc.c
+++ b/
src/core/malloc.c
@@
-311,8
+311,11
@@
void free ( void *ptr ) {
* @ret ptr Allocated memory
*
* Allocate memory as per malloc(), and zero it.
* @ret ptr Allocated memory
*
* Allocate memory as per malloc(), and zero it.
+ *
+ * This function name is non-standard, but pretty intuitive.
+ * zalloc(size) is always equivalent to calloc(1,size)
*/
*/
-void *
_c
alloc ( size_t size ) {
+void *
z
alloc ( size_t size ) {
void *data;
data = malloc ( size );
void *data;
data = malloc ( size );