mirror of https://github.com/acidanthera/audk.git
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:
parent
0aa39d2840
commit
147113644f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue