]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c
Update the license dates
[mirror_edk2.git] / AppPkg / Applications / Sockets / GetNetByName / GetNetByName.c
index be81b3483d26612fdfb3f6ca34689fd21712f77d..f4e0aca1a199b212e7907d79943810e1cae0aec1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Translate the network name into an IP address\r
 \r
-  Copyright (c) 2011, Intel Corporation\r
+  Copyright (c) 2011-2012, Intel Corporation\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -65,7 +65,7 @@ main (
       Print ( L"ERROR - network not found, errno: %d\r\n", errno );\r
     }\r
     else {\r
-      pIpAddress = (UINT8 *)pNetwork->n_net;\r
+      pIpAddress = (UINT8 *)(UINTN)&pNetwork->n_net;\r
       Print ( L"%a: Type %d, %d.%d.%d.%d\r\n",\r
               pNetwork->n_name,\r
               pNetwork->n_addrtype,\r