Cleanup some unused variables, goto lables, and add the missing
header files.
Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
else
execute(temp_cmd, KT_KERNEL);
-cleanup:
free(argv);
free(temp_cmd);
}
const void *syslinux_getadv(int tag, size_t * size)
{
const uint8_t *p;
- size_t left, len;
+ size_t left;
p = syslinux_adv_ptr();
left = syslinux_adv_size();
static void enter_cmdline(void)
{
struct cli_command *aux;
- char *cmdline;
+ const char *cmdline;
/* Enter endless command line prompt, should support "exit" */
while (1) {
const char *filename;
struct menu *m;
struct menu_entry *me;
- char *cmdline;
dprintf("enter");
empty_string = refstrdup("");
#include <dprintf.h>
#include <com32.h>
+#include <sys/exec.h>
+#include "core.h"
#include "core-elf.h"
/* Must match enum kernel_type */