]> git.proxmox.com Git - mirror_edk2.git/commit
StdLib/LibC/StdLib/Malloc.c: Revert cast removal to fix GCC build breakage.
authorDaryl McDaniel <daryl.mcdaniel@intel.com>
Thu, 24 Jul 2014 23:16:47 +0000 (23:16 +0000)
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 24 Jul 2014 23:16:47 +0000 (23:16 +0000)
commit69c87efff4556df3aac9a12d869b0a9f131edd84
treeb61c242640ecdf983d4e9ae0257e35d908d8d57e
parenta33a2f62218e6e49a25d63474b7fe423d8ee4b71
StdLib/LibC/StdLib/Malloc.c: Revert cast removal to fix GCC build breakage.

The cast to (void**) is needed for the last parameter of the AllocatePool call in malloc().  This is because type CPOOL_HEAD** is not automatically promoted to void**, as required by AllocatePool().

This was originally addressed in SVN revision 15474 but removed again in 15664.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Daryl McDaniel <daryl.mcdaniel@intel.com>
Reviewed by: Stefan Kaeser <stefankaeser@hotmail.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15677 6f19259b-4bc3-4df7-8a09-765794883524
StdLib/LibC/StdLib/Malloc.c