Impact: Signature change.
The cli mode information is already in the function name. No need to pass it
as a parameter. This fixes a compilation warning.
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
show_syslinux_help();
}
-void handle_syslinux_commands(char *cli_line, struct s_cli_mode *cli_mode,
- struct s_hardware *hardware)
+void handle_syslinux_commands(char *cli_line, struct s_hardware *hardware)
{
if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) {
syslinux_show(strstr(cli_line, "show") + sizeof(CLI_SHOW),
- hardware);
+ hardware);
return;
}
}
handle_pxe_commands(cli_line, &cli_mode, hardware);
break;
case SYSLINUX_MODE:
- handle_syslinux_commands(cli_line, &cli_mode, hardware);
+ handle_syslinux_commands(cli_line, hardware);
break;
case KERNEL_MODE:
handle_kernel_commands(cli_line, &cli_mode, hardware);
// SYSLINUX STUFF
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);
+void handle_syslinux_commands(char *cli_line, struct s_hardware *hardware);
-//VESA STUFF
+// VESA STUFF
void main_show_vesa(struct s_hardware *hardware);
-void handle_vesa_commands(char *cli_line, struct s_cli_mode *cli_mode, struct s_hardware *hardware);
+void handle_vesa_commands(char *cli_line, struct s_cli_mode *cli_mode,
+ struct s_hardware *hardware);
+
#endif