Impact: Signature change.
The cli mode information is already in the function name
'main_show_syslinux'. No need to pass it as a parameter. This fixes a
compilation warning.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
#include "hdt-cli.h"
#include "hdt-common.h"
-void main_show_syslinux(struct s_hardware *hardware,
- struct s_cli_mode *cli_mode)
+void main_show_syslinux(struct s_hardware *hardware)
{
more_printf("SYSLINUX\n");
more_printf(" Bootloader : %s\n", hardware->syslinux_fs);
void syslinux_show(char *item, struct s_hardware *hardware)
{
if (!strncmp(item, CLI_SHOW_LIST, sizeof(CLI_SHOW_LIST) - 1)) {
- main_show_syslinux(hardware, NULL);
+ main_show_syslinux(hardware);
return;
}
show_syslinux_help();
return;
}
if (!strncmp(item, CLI_SYSLINUX, sizeof(CLI_SYSLINUX))) {
- main_show_syslinux(hardware, cli_mode);
+ main_show_syslinux(hardware);
return;
}
if (!strncmp(item, CLI_KERNEL, sizeof(CLI_KERNEL))) {
struct s_hardware *hardware);
// SYSLINUX STUFF
-void main_show_syslinux(struct s_hardware *hardware,
- struct s_cli_mode *cli_mode);
+void main_show_syslinux(struct s_hardware *hardware);
void handle_syslinux_commands(char *cli_line, struct s_cli_mode *cli_mode,
struct s_hardware *hardware);