diff options
author | Paulo Alcantara <pcacjr@zytor.com> | 2014-04-17 20:59:50 +0000 |
---|---|---|
committer | darylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524> | 2014-04-17 20:59:50 +0000 |
commit | 147113644f043b1b9bd88da4e2b4e79150c78084 (patch) | |
tree | a685155d2d2cd4361f65910343a4f8cf0da37b27 /StdLib | |
parent | 0aa39d284043be61b5f1222afdffd39a5abaf3aa (diff) | |
download | edk2-147113644f043b1b9bd88da4e2b4e79150c78084.tar.gz edk2-147113644f043b1b9bd88da4e2b4e79150c78084.tar.bz2 edk2-147113644f043b1b9bd88da4e2b4e79150c78084.zip |
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
Diffstat (limited to 'StdLib')
-rw-r--r-- | StdLib/LibC/StdLib/Malloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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;
|