mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
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).
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include <assert.h>
|
||||
#include <vsprintf.h>
|
||||
#include <gpxe/list.h>
|
||||
#include <gpxe/emalloc.h>
|
||||
#include <gpxe/image.h>
|
||||
|
||||
/** @file
|
||||
|
||||
Reference in New Issue
Block a user