StdLib: StdLib/Malloc.c

This patch fixes the following warning:
    "expected ‘void **’ but argument is of type ‘struct CPOOL_HEAD **’"

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed by: Daryl McDaniel <daryl.mcdaniel@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15474 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Paulo Alcantara 2014-04-17 20:59:50 +00:00 committed by darylm503
parent 0aa39d2840
commit 147113644f
1 changed files with 1 additions and 1 deletions

View File

@ -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;