]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c
Fix the errors detected by the GCC compiler:
[mirror_edk2.git] / AppPkg / Applications / Sockets / GetNetByName / GetNetByName.c
index b3609c9374c5dd7b0c8092d2376247464fec75ee..a77fefce10f8bf8329d5a3ed1823d45b240e5ef6 100644 (file)
@@ -23,7 +23,7 @@
 \r
 #include <sys/socket.h>\r
 \r
 \r
 #include <sys/socket.h>\r
 \r
-char mBuffer [65536];\r
+char mBuffer[65536];\r
 \r
 \r
 /**\r
 \r
 \r
 /**\r
@@ -65,7 +65,7 @@ main (
       Print ( L"ERROR - network not found, errno: %d\r\n", errno );\r
     }\r
     else {\r
       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
       Print ( L"%a: Type %d, %d.%d.%d.%d\r\n",\r
               pNetwork->n_name,\r
               pNetwork->n_addrtype,\r