diff options
author | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-17 23:45:45 +0000 |
---|---|---|
committer | lpleahy <lpleahy@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-02-17 23:45:45 +0000 |
commit | 53c31c516489d4cd46d20d59a3705720be3443f1 (patch) | |
tree | fb25082296530930d1bc195b3f7d7c70eaa24a1d /AppPkg/Applications/Sockets/GetNetByName | |
parent | 7700f0f5c0ab90bf052e33fa0ddd2f2aa7e7893e (diff) | |
download | edk2-platforms-53c31c516489d4cd46d20d59a3705720be3443f1.tar.xz |
Fix the errors detected by the GCC compiler:
* Add EFIAPI to the timer callbacks
* Fix 32-bit pointer casts
Signed-off-by: lpleahy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13024 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'AppPkg/Applications/Sockets/GetNetByName')
-rw-r--r-- | AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c b/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c index be81b3483d..a77fefce10 100644 --- a/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c +++ b/AppPkg/Applications/Sockets/GetNetByName/GetNetByName.c @@ -65,7 +65,7 @@ main ( Print ( L"ERROR - network not found, errno: %d\r\n", errno );
}
else {
- pIpAddress = (UINT8 *)pNetwork->n_net;
+ pIpAddress = (UINT8 *)(UINTN)&pNetwork->n_net;
Print ( L"%a: Type %d, %d.%d.%d.%d\r\n",
pNetwork->n_name,
pNetwork->n_addrtype,
|