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_pxe(struct s_hardware *hardware, struct s_cli_mode *cli_mode)
+void main_show_pxe(struct s_hardware *hardware)
{
char buffer[81];
memset(buffer, 0, sizeof(81));
void pxe_show(char *item, struct s_hardware *hardware)
{
if (!strncmp(item, CLI_SHOW_LIST, sizeof(CLI_SHOW_LIST) - 1)) {
- main_show_pxe(hardware, NULL);
+ main_show_pxe(hardware);
return;
}
show_pxe_help();
main_show_pci(hardware);
if (hardware->is_pxe_valid)
- main_show_pxe(hardware, cli_mode);
+ main_show_pxe(hardware);
main_show_kernel(hardware);
}
return;
}
if (!strncmp(item, CLI_PXE, sizeof(CLI_PXE))) {
- main_show_pxe(hardware, cli_mode);
+ main_show_pxe(hardware);
return;
}
if (!strncmp(item, CLI_SYSLINUX, sizeof(CLI_SYSLINUX))) {
void cpu_show(char *item, struct s_hardware *hardware);
// PXE STUFF
-void main_show_pxe(struct s_hardware *hardware, struct s_cli_mode *cli_mode);
+void main_show_pxe(struct s_hardware *hardware);
void handle_pxe_commands(char *cli_line, struct s_hardware *hardware);
// KERNEL STUFF