summaryrefslogtreecommitdiff
path: root/lib/configtable.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
committerPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
commit1f23ecc3000b14c02cbaf47a819ed89ac93ec12e (patch)
treeeb2616cc6b941d7d2688554d88e2fbe7e0447c13 /lib/configtable.c
parent0ea5b3e3b7a905aac7668029348d895509de20e6 (diff)
downloadefi-boot-shim-1f23ecc3000b14c02cbaf47a819ed89ac93ec12e.tar.gz
efi-boot-shim-1f23ecc3000b14c02cbaf47a819ed89ac93ec12e.zip
Make lib/ build right with the cflags it should be using...
... but isn't. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib/configtable.c')
-rw-r--r--lib/configtable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/configtable.c b/lib/configtable.c
index e2d92bf0..edf2ed74 100644
--- a/lib/configtable.c
+++ b/lib/configtable.c
@@ -14,7 +14,7 @@
void *
configtable_get_table(EFI_GUID *guid)
{
- int i;
+ unsigned int i;
for (i = 0; i < ST->NumberOfTableEntries; i++) {
EFI_CONFIGURATION_TABLE *CT = &ST->ConfigurationTable[i];
@@ -82,7 +82,7 @@ configtable_find_image(const EFI_DEVICE_PATH *DevicePath)
}
EFI_DEVICE_PATH *dp = (EFI_DEVICE_PATH *)(e->Data + skip), *dpn = dp;
if (dp->Type == 0 || dp->Type > 6 || dp->SubType == 0
- || (((dp->Length[1] << 8) + dp->Length[0]) > e->InfoSize)) {
+ || ((unsigned)((dp->Length[1] << 8) + dp->Length[0]) > e->InfoSize)) {
/* Parse error, table corrupt, bail */
Print(L"Image Execution Information table corrupt\n");
break;