]> 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 d539c994815076207d492e485f8ab9d19b81de62..f81ca96af05436654f70c1437ffe69b86834c4aa 100644 (file)
@@ -23,7 +23,7 @@
 \r
 #include <sys/socket.h>\r
 \r
-char mBuffer [65536];\r
+char mBuffer[65536];\r
 \r
 \r
 /**\r
@@ -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