summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2018-03-13 15:20:21 -0400
committerNigel Croxon <ncroxon@redhat.com>2018-03-14 14:50:22 -0400
commita46a62b12b58139c31d4288384808365c4053bf2 (patch)
tree3383f9233f7fee829db36d8832e000207d77e98e /apps
parent3b523e30f32977427eece40016571d6d71e72d0b (diff)
downloadgnu-efi-a46a62b12b58139c31d4288384808365c4053bf2.tar.gz
Fix some types gcc doesn't like
Most of these come from building on i386 with -Wextra, but they're still incorrect everywhere else; they just happen to have identical typedefs at other places, so the compiler doesn't care. Signed-off-by: Peter Jones <pjones@redhat.com> Signed-off-by: Nigel Croxon <ncroxon@redhat.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/AllocPages.c2
-rw-r--r--apps/FreePages.c2
-rw-r--r--apps/route80h.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/AllocPages.c b/apps/AllocPages.c
index 77a082e..bb81849 100644
--- a/apps/AllocPages.c
+++ b/apps/AllocPages.c
@@ -116,7 +116,7 @@ efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
INTN AllocType = -1;
INTN MemType = -1;
INTN NumPages = -1;
- UINTN Addr = 0;
+ EFI_PHYSICAL_ADDRESS Addr = 0;
InitializeLib(image, systab);
diff --git a/apps/FreePages.c b/apps/FreePages.c
index bbf2f52..247c75d 100644
--- a/apps/FreePages.c
+++ b/apps/FreePages.c
@@ -89,7 +89,7 @@ efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
INTN err = 0;
INTN PgCnt = -1;
- UINTN PhysAddr = 0;
+ EFI_PHYSICAL_ADDRESS PhysAddr = 0;
InitializeLib(image, systab);
diff --git a/apps/route80h.c b/apps/route80h.c
index 8df860c..e1f62f0 100644
--- a/apps/route80h.c
+++ b/apps/route80h.c
@@ -129,7 +129,7 @@ efi_main (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab)
lpcif.rcba &= ~1UL;
Print(L"rcba: 0x%8x\n", lpcif.rcba, lpcif.rcba);
- set_bit((uint32_t *)(uint64_t)(lpcif.rcba + GCS_OFFSET_ADDR),
+ set_bit((uint32_t *)(intptr_t)(lpcif.rcba + GCS_OFFSET_ADDR),
GCS_RPR_SHIFT, GCS_RPR_PCI);
return EFI_SUCCESS;