aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoƮt Allard <benoit.allard@greenbone.net>2017-06-09 11:59:43 +0200
committerJoakim Tjernlund <joakim.tjernlund@infinera.com>2017-11-09 19:03:50 +0100
commit22d32c15ea96c01c8c05b8c1551095716d42f3a4 (patch)
tree0c9daedace490a9eee05368e75a916bf47e72857
parent7bed3e157a6432c3d5af59bb36918271c7a6750f (diff)
downloadsyslinux-22d32c15ea96c01c8c05b8c1551095716d42f3a4.tar.gz
syslinux-22d32c15ea96c01c8c05b8c1551095716d42f3a4.tar.xz
syslinux-22d32c15ea96c01c8c05b8c1551095716d42f3a4.zip
Update the longjump calls to fit the new declaration
-rw-r--r--efi/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/efi/main.c b/efi/main.c
index fd95f5c8..92546de6 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -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 */