]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/GetHostByAddr/GetHostByAddr.c
Fix some errors detected by the GCC 4.4 compiler.
[mirror_edk2.git] / AppPkg / Applications / Sockets / GetHostByAddr / GetHostByAddr.c
index cec6b6c7c9af2e0b573c2de94191ad192ef64d1a..bb5841588ead450b393fa1b5877178cce396110f 100644 (file)
@@ -73,7 +73,7 @@ main (
     IpAddress[1] = (UINT8)RemoteAddress[1];\r
     IpAddress[2] = (UINT8)RemoteAddress[2];\r
     IpAddress[3] = (UINT8)RemoteAddress[3];\r
-    pHost = gethostbyaddr ( &IpAddress[0], INADDRSZ, AF_INET );\r
+    pHost = gethostbyaddr ( (const char *)&IpAddress[0], INADDRSZ, AF_INET );\r
     if ( NULL == pHost ) {\r
       Print ( L"ERROR - host not found, h_errno: %d\r\n", h_errno );\r
     }\r