From 147113644f043b1b9bd88da4e2b4e79150c78084 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Thu, 17 Apr 2014 20:59:50 +0000 Subject: [PATCH] =?UTF-8?q?StdLib:=20StdLib/Malloc.c=20This=20patch=20fixe?= =?UTF-8?q?s=20the=20following=20warning:=20=20=20=20=20"expected=20?= =?UTF-8?q?=E2=80=98void=20**=E2=80=99=20but=20argument=20is=20of=20type?= =?UTF-8?q?=20=E2=80=98struct=20CPOOL=5FHEAD=20**=E2=80=99"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed by: Daryl McDaniel git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15474 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/LibC/StdLib/Malloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StdLib/LibC/StdLib/Malloc.c b/StdLib/LibC/StdLib/Malloc.c index df6e702476..44d89eef5d 100644 --- a/StdLib/LibC/StdLib/Malloc.c +++ b/StdLib/LibC/StdLib/Malloc.c @@ -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;