From 53c31c516489d4cd46d20d59a3705720be3443f1 Mon Sep 17 00:00:00 2001 From: lpleahy Date: Fri, 17 Feb 2012 23:45:45 +0000 Subject: Fix the errors detected by the GCC compiler: * Add EFIAPI to the timer callbacks * Fix 32-bit pointer casts Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13024 6f19259b-4bc3-4df7-8a09-765794883524 --- AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AppPkg/Applications/Sockets/GetNetByName') diff --git a/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c b/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c index be81b3483d..a77fefce10 100644 --- a/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c +++ b/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c @@ -65,7 +65,7 @@ main ( Print ( L"ERROR - network not found, errno: %d\r\n", errno ); } else { - pIpAddress = (UINT8 *)pNetwork->n_net; + pIpAddress = (UINT8 *)(UINTN)&pNetwork->n_net; Print ( L"%a: Type %d, %d.%d.%d.%d\r\n", pNetwork->n_name, pNetwork->n_addrtype, -- cgit v1.2.3