]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/GetHostByName/GetHostByName.c
Update applications to display correct error for gethostbyaddr and gethostbyname...
[mirror_edk2.git] / AppPkg / Applications / Sockets / GetHostByName / GetHostByName.c
index c58552abbc55e05ff02140a366525a58cbfe8135..f81ca96af05436654f70c1437ffe69b86834c4aa 100644 (file)
@@ -64,7 +64,7 @@ main (
     //\r
     pHost = gethostbyname ( Argv[1]);\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;\r