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>
#include "hdt-cli.h"
#include "hdt-common.h"
-void main_show_kernel(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
+void main_show_kernel(struct s_hardware *hardware)
{
char buffer[1024];
struct pci_device *pci_device;
if (hardware->is_pxe_valid)
main_show_pxe(hardware, cli_mode);
- main_show_kernel(hardware, cli_mode);
+ main_show_kernel(hardware);
}
void show_main_help(struct s_hardware *hardware)
return;
}
if (!strncmp(item, CLI_KERNEL, sizeof(CLI_KERNEL))) {
- main_show_kernel(hardware, cli_mode);
+ main_show_kernel(hardware);
return;
}
struct s_hardware *hardware);
// KERNEL STUFF
-void main_show_kernel(struct s_hardware *hardware, struct s_cli_mode *cli_mode);
+void main_show_kernel(struct s_hardware *hardware);
void handle_kernel_commands(char *cli_line, struct s_cli_mode *cli_mode,
struct s_hardware *hardware);