summaryrefslogtreecommitdiffstats
path: root/src/core/ebuffer.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-16 09:36:42 +0100
committerMichael Brown2007-01-16 09:36:42 +0100
commit544fa259287a2b919d8ed05bc201a5133032ef05 (patch)
treeff78f4abbfb22c10f45402f98c11e2d5419f5e70 /src/core/ebuffer.c
parentCreate and use async_block() macro; it cuts down on the visual overhead (diff)
downloadipxe-544fa259287a2b919d8ed05bc201a5133032ef05.tar.gz
ipxe-544fa259287a2b919d8ed05bc201a5133032ef05.tar.xz
ipxe-544fa259287a2b919d8ed05bc201a5133032ef05.zip
Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously
reflect the fact that they allocate and deallocate user memory (i.e. things reached through a userptr_t).
Diffstat (limited to 'src/core/ebuffer.c')
-rw-r--r--src/core/ebuffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ebuffer.c b/src/core/ebuffer.c
index 5abfca745..16d49a12e 100644
--- a/src/core/ebuffer.c
+++ b/src/core/ebuffer.c
@@ -25,7 +25,7 @@
#include <errno.h>
#include <gpxe/buffer.h>
-#include <gpxe/emalloc.h>
+#include <gpxe/umalloc.h>
#include <gpxe/ebuffer.h>
/**
@@ -46,7 +46,7 @@ static int ebuffer_expand ( struct buffer *buffer, size_t new_len ) {
actual_len <<= 1;
/* Reallocate buffer */
- new_addr = erealloc ( buffer->addr, actual_len );
+ new_addr = urealloc ( buffer->addr, actual_len );
if ( ! new_addr )
return -ENOMEM;
@@ -63,7 +63,7 @@ static int ebuffer_expand ( struct buffer *buffer, size_t new_len ) {
* @ret rc Return status code
*
* Allocates space for the buffer and stores it in @c buffer->addr.
- * The space must eventually be freed by calling efree(buffer->addr).
+ * The space must eventually be freed by calling ufree(buffer->addr).
*/
int ebuffer_alloc ( struct buffer *buffer, size_t len ) {
memset ( buffer, 0, sizeof ( *buffer ) );