mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-18 23:35:34 +00:00
klibc has changed its signature of reboot() API adapt the use here Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 lines
312 B
Diff
12 lines
312 B
Diff
--- a/kexec/kexec.c
|
|
+++ b/kexec/kexec.c
|
|
@@ -901,7 +901,7 @@ static int my_exec(void)
|
|
if (xen_present())
|
|
xen_kexec_exec();
|
|
else
|
|
- reboot(LINUX_REBOOT_CMD_KEXEC);
|
|
+ reboot(LINUX_REBOOT_CMD_KEXEC, NULL);
|
|
/* I have failed if I make it here */
|
|
fprintf(stderr, "kexec failed: %s\n",
|
|
strerror(errno));
|