summaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2015-04-13 19:55:25 -0400
committerPeter Jones <pjones@redhat.com>2015-04-13 19:55:25 -0400
commitcb7dec11f2e4dc37d133af8eb9403ef11c28be15 (patch)
tree66b65e6163e9beb73ab02f355d43ed14b3db342f /fallback.c
parent8d535fc962ea6c60fc222bf39f49b36dd7f4a70f (diff)
downloadefi-boot-shim-cb7dec11f2e4dc37d133af8eb9403ef11c28be15.tar.gz
efi-boot-shim-cb7dec11f2e4dc37d133af8eb9403ef11c28be15.zip
fallback: Fix comparison between signed and unsigned in debugging code.
fallback.c: In function ‘update_boot_order’: fallback.c:334:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (j = 0 ; j < size / sizeof (CHAR16); j++) ^ fallback.c: In function ‘add_to_boot_list’: fallback.c:402:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] for (i = 0; i < s; i++) { ^ Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fallback.c b/fallback.c
index d10fb629..e739b78b 100644
--- a/fallback.c
+++ b/fallback.c
@@ -328,7 +328,7 @@ update_boot_order(void)
#ifdef DEBUG_FALLBACK
Print(L"nbootorder: %d\nBootOrder: ", size / sizeof (CHAR16));
- int j;
+ UINTN j;
for (j = 0 ; j < size / sizeof (CHAR16); j++)
Print(L"%04x ", newbootorder[j]);
Print(L"\n");
@@ -395,7 +395,7 @@ add_to_boot_list(EFI_FILE_HANDLE fh, CHAR16 *dirname, CHAR16 *filename, CHAR16 *
#ifdef DEBUG_FALLBACK
{
UINTN s = DevicePathSize(dp);
- int i;
+ UINTN i;
UINT8 *dpv = (void *)dp;
for (i = 0; i < s; i++) {
if (i > 0 && i % 16 == 0)