diff options
author | BenoƮt Allard <benoit.allard@greenbone.net> | 2017-06-09 11:59:43 +0200 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@infinera.com> | 2017-11-09 19:03:50 +0100 |
commit | 22d32c15ea96c01c8c05b8c1551095716d42f3a4 (patch) | |
tree | 0c9daedace490a9eee05368e75a916bf47e72857 | |
parent | 7bed3e157a6432c3d5af59bb36918271c7a6750f (diff) | |
download | syslinux-22d32c15ea96c01c8c05b8c1551095716d42f3a4.tar.gz syslinux-22d32c15ea96c01c8c05b8c1551095716d42f3a4.tar.xz syslinux-22d32c15ea96c01c8c05b8c1551095716d42f3a4.zip |
Update the longjump calls to fit the new declaration
-rw-r--r-- | efi/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -10,7 +10,6 @@ #include <syslinux/firmware.h> #include <syslinux/linux.h> #include <sys/ansi.h> -#include <setjmp.h> #include "efi.h" #include "fio.h" @@ -185,7 +184,7 @@ __export void local_boot(uint16_t ax) * Inform the firmware that we failed to execute correctly, which * will trigger the next entry in the EFI Boot Manager list. */ - longjmp(load_error_buf, 1); + longjmp(&load_error_buf, 1); } void bios_timer_cleanup(void) @@ -1383,7 +1382,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *table) status = uefi_call_wrapper(in->ReadKeyStroke, 2, in, &key); } while (status == EFI_SUCCESS); - if (!setjmp(load_error_buf)) + if (!setjmp(&load_error_buf)) load_env32(NULL); /* load_env32() failed.. cancel timer and bailout */ |