Fix the errors detected by the GCC compiler:
[mirror_edk2.git] / AppPkg / Applications / Sockets / GetNetByName / GetNetByName.c
index be81b3483d26612fdfb3f6ca34689fd21712f77d..a77fefce10f8bf8329d5a3ed1823d45b240e5ef6 100644 (file)
@@ -65,7 +65,7 @@ main (
       Print ( L"ERROR - network not found, errno: %d\r\n", errno );\r
     }\r
     else {\r
-      pIpAddress = (UINT8 *)pNetwork->n_net;\r
+      pIpAddress = (UINT8 *)(UINTN)&pNetwork->n_net;\r
       Print ( L"%a: Type %d, %d.%d.%d.%d\r\n",\r
               pNetwork->n_name,\r
               pNetwork->n_addrtype,\r