summaryrefslogtreecommitdiff
path: root/lib/configtable.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-02-25 16:33:59 -0500
committerPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
commit7fdbd9d48a4e447d4ea42268afb80a1ee84b633b (patch)
treeeb2616cc6b941d7d2688554d88e2fbe7e0447c13 /lib/configtable.c
parent6b2510522f92026dc17e1c5508bbfab935741012 (diff)
downloadefi-boot-shim-7fdbd9d48a4e447d4ea42268afb80a1ee84b633b.tar.gz
efi-boot-shim-7fdbd9d48a4e447d4ea42268afb80a1ee84b633b.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;