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_pci_help();
}
-void handle_pci_commands(char *cli_line, struct s_cli_mode *cli_mode,
- struct s_hardware *hardware)
+void handle_pci_commands(char *cli_line, struct s_hardware *hardware)
{
if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) {
pci_show(strstr(cli_line, "show") + sizeof(CLI_SHOW), hardware);
handle_dmi_commands(cli_line, hardware);
break;
case PCI_MODE:
- handle_pci_commands(cli_line, &cli_mode, hardware);
+ handle_pci_commands(cli_line, hardware);
break;
case HDT_MODE:
handle_hdt_commands(cli_line, &cli_mode, hardware);
// PCI STUFF
#define CLI_PCI_DEVICE "device"
void main_show_pci(struct s_hardware *hardware);
-void handle_pci_commands(char *cli_line, struct s_cli_mode *cli_mode,
- struct s_hardware *hardware);
+void handle_pci_commands(char *cli_line, struct s_hardware *hardware);
void pci_show(char *item, struct s_hardware *hardware);
void cli_detect_pci(struct s_hardware *hardware);