]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/GetHostByAddr/GetHostByAddr.c
Update applications to display correct error for gethostbyaddr and gethostbyname...
[mirror_edk2.git] / AppPkg / Applications / Sockets / GetHostByAddr / GetHostByAddr.c
index 63299a1f9d5d28390979bb83c16595b1a24aa503..cec6b6c7c9af2e0b573c2de94191ad192ef64d1a 100644 (file)
@@ -75,7 +75,7 @@ main (
     IpAddress[3] = (UINT8)RemoteAddress[3];\r
     pHost = gethostbyaddr ( &IpAddress[0], INADDRSZ, AF_INET );\r
     if ( NULL == pHost ) {\r
-      Print ( L"ERROR - host not found, errno: %d\r\n", errno );\r
+      Print ( L"ERROR - host not found, h_errno: %d\r\n", h_errno );\r
     }\r
     else {\r
       pIpAddress = (UINT8 *)pHost->h_addr_list[ 0 ];\r