summaryrefslogtreecommitdiffstats
path: root/src/core/malloc.c
diff options
context:
space:
mode:
authorMichael Brown2007-06-11 22:36:10 +0200
committerMichael Brown2007-06-11 22:36:10 +0200
commit058b20052914ee2b0ccff4a89b71a61bf9d29a27 (patch)
tree90163f360caf169a9ccf18c92e9f2e64a19ecf2c /src/core/malloc.c
parentAdd missing call to free_iob(). (diff)
downloadipxe-058b20052914ee2b0ccff4a89b71a61bf9d29a27.tar.gz
ipxe-058b20052914ee2b0ccff4a89b71a61bf9d29a27.tar.xz
ipxe-058b20052914ee2b0ccff4a89b71a61bf9d29a27.zip
Renamed _calloc() to zalloc(), ready to be used as a standalone function.
Diffstat (limited to 'src/core/malloc.c')
-rw-r--r--src/core/malloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/malloc.c b/src/core/malloc.c
index 6dfdd632..bf94592c 100644
--- 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.
+ *
+ * This function name is non-standard, but pretty intuitive.
+ * zalloc(size) is always equivalent to calloc(1,size)
*/
-void * _calloc ( size_t size ) {
+void * zalloc ( size_t size ) {
void *data;
data = malloc ( size );