summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2007-06-11 22:36:22 +0200
committerMichael Brown2007-06-11 22:36:22 +0200
commita74ecf3057726f18feaf48922be4421c941f8c25 (patch)
tree17aeeb5d23d4e81d636366d4e1c9fbb2379eb484 /src/core
parentUpdated TFTP and PXE UDP API code to use not-yet-implemented data-xfer (diff)
parentRenamed _calloc() to zalloc(), ready to be used as a standalone function. (diff)
downloadipxe-a74ecf3057726f18feaf48922be4421c941f8c25.tar.gz
ipxe-a74ecf3057726f18feaf48922be4421c941f8c25.tar.xz
ipxe-a74ecf3057726f18feaf48922be4421c941f8c25.zip
Merge branch 'master' into mcb-tcp-xfer
Diffstat (limited to 'src/core')
-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 6dfdd632a..bf94592cc 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 );