Skip to content

Commit

Permalink
Change type of fallback_verbose_wait from int to unsigned long
Browse files Browse the repository at this point in the history
The variable fallback_verbose_wait from now on is of the type unsigned
long to match the type of the argument usleep() accepts.

Signed-off-by: Kamil Aronowski <kamil.aronowski@yahoo.com>
  • Loading branch information
aronowski authored and vathpela committed Jun 21, 2023
1 parent 549d346 commit 908c388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ try_start_first_option(EFI_HANDLE parent_image_handle)
EFI_HANDLE image_handle;

if (get_fallback_verbose()) {
int fallback_verbose_wait = 500000; /* default to 0.5s */
unsigned long fallback_verbose_wait = 500000; /* default to 0.5s */
#ifdef FALLBACK_VERBOSE_WAIT
fallback_verbose_wait = FALLBACK_VERBOSE_WAIT;
#endif
Expand Down Expand Up @@ -1211,7 +1211,7 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *systab)
console_print(L"Reset System\n");

if (get_fallback_verbose()) {
int fallback_verbose_wait = 500000; /* default to 0.5s */
unsigned long fallback_verbose_wait = 500000; /* default to 0.5s */
#ifdef FALLBACK_VERBOSE_WAIT
fallback_verbose_wait = FALLBACK_VERBOSE_WAIT;
#endif
Expand Down

0 comments on commit 908c388

Please sign in to comment.