From 5f74808d03a3f5aae4a098afdff0c3e73d762776 Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Wed, 6 Sep 2017 18:07:40 +0800 Subject: [PATCH] MdeModulePkg: Fix GCC build error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan Cc: Ard Biesheuvel --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c index 03ba458a96..49b7dc55d5 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Driver.c @@ -46,7 +46,7 @@ IpSec2InstalledCallback ( // Test if protocol was even found. // Notification function will be called at least once. // - Status = gBS->LocateProtocol (&gEfiIpSec2ProtocolGuid, NULL, &mIpSec); + Status = gBS->LocateProtocol (&gEfiIpSec2ProtocolGuid, NULL, (VOID **)&mIpSec); if (Status == EFI_SUCCESS && mIpSec != NULL) { // // Close the event so it does not get called again. -- 2.39.2