summaryrefslogtreecommitdiffstats
path: root/src/usr/imgmgmt.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/usr/imgmgmt.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/usr/imgmgmt.c')
-rw-r--r--src/usr/imgmgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/imgmgmt.c b/src/usr/imgmgmt.c
index eb2330a3..abd48bb3 100644
--- a/src/usr/imgmgmt.c
+++ b/src/usr/imgmgmt.c
@@ -21,7 +21,7 @@
#include <errno.h>
#include <vsprintf.h>
#include <gpxe/image.h>
-#include <gpxe/emalloc.h>
+#include <gpxe/umalloc.h>
#include <usr/fetch.h>
#include <usr/imgmgmt.h>
@@ -66,7 +66,7 @@ int imgfetch ( const char *filename, const char *name,
return 0;
err:
- efree ( image->data );
+ ufree ( image->data );
free ( image );
return rc;
}
@@ -139,6 +139,6 @@ void imgstat ( struct image *image ) {
*/
void imgfree ( struct image *image ) {
unregister_image ( image );
- efree ( image->data );
+ ufree ( image->data );
free ( image );
}