diff options
Diffstat (limited to 'StdLib/LibC')
-rw-r--r-- | StdLib/LibC/StdLib/Malloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/StdLib/LibC/StdLib/Malloc.c b/StdLib/LibC/StdLib/Malloc.c index 7d9718b266..c131b9ebf5 100644 --- a/StdLib/LibC/StdLib/Malloc.c +++ b/StdLib/LibC/StdLib/Malloc.c @@ -84,8 +84,8 @@ void * malloc(size_t Size)
{
CPOOL_HEAD *Head;
- void *RetVal;
- EFI_STATUS Status;
+ void *RetVal;
+ EFI_STATUS Status;
UINTN NodeSize;
if( Size == 0) {
@@ -98,7 +98,7 @@ malloc(size_t Size) DEBUG((DEBUG_POOL, "malloc(%d): NodeSz: %d", Size, NodeSize));
- Status = gBS->AllocatePool( EfiLoaderData, NodeSize, &Head);
+ Status = gBS->AllocatePool( EfiLoaderData, NodeSize, (void**)&Head);
if( Status != EFI_SUCCESS) {
RetVal = NULL;
errno = ENOMEM;
|