Update the sockets applications

* Builds with GCC 4.4 compiler.

Signed-off by: lpleahy


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12498 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lpleahy
2011-09-30 23:04:13 +00:00
parent a88c31639b
commit 59bc059327
52 changed files with 3062 additions and 235 deletions

View File

@@ -59,10 +59,10 @@ main (
&RemoteAddress[1],
&RemoteAddress[2],
&RemoteAddress[3]))
|| ( 255 < RemoteAddress [0])
|| ( 255 < RemoteAddress [1])
|| ( 255 < RemoteAddress [2])
|| ( 255 < RemoteAddress [3])) {
|| ( 255 < RemoteAddress[0])
|| ( 255 < RemoteAddress[1])
|| ( 255 < RemoteAddress[2])
|| ( 255 < RemoteAddress[3])) {
Print ( L"%a <IPv4 Address>\r\n", Argv[0]);
}
else {
@@ -78,7 +78,7 @@ main (
Print ( L"ERROR - host not found, errno: %d\r\n", errno );
}
else {
pIpAddress = (UINT8 *)pHost->h_addr_list [ 0 ];
pIpAddress = (UINT8 *)pHost->h_addr_list[ 0 ];
Print ( L"%d.%d.%d.%d, %a\r\n",
pIpAddress[0],
pIpAddress[1],