hdt: Remove unused parameter in handle_cpu_commands
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 18:27:15 +0000 (11:27 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:31:22 +0000 (15:31 -0700)
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>
com32/hdt/hdt-cli-cpu.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h

index 4dfe953..dfcb454 100644 (file)
@@ -161,8 +161,7 @@ static void cpu_show(char *item, struct s_hardware *hardware)
   show_cpu_help();
 }
 
-void handle_cpu_commands(char *cli_line, struct s_cli_mode *cli_mode,
-                         struct s_hardware *hardware)
+void handle_cpu_commands(char *cli_line, struct s_hardware *hardware)
 {
   if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) {
     cpu_show(strstr(cli_line, "show") + sizeof(CLI_SHOW), hardware);
index d2a8e10..0fc81b3 100644 (file)
@@ -197,7 +197,7 @@ void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[])
       handle_hdt_commands(cli_line, &cli_mode, hardware);
       break;
     case CPU_MODE:
-      handle_cpu_commands(cli_line, &cli_mode, hardware);
+      handle_cpu_commands(cli_line, hardware);
       break;
     case PXE_MODE:
       handle_pxe_commands(cli_line, hardware);
index 9ca4af0..023419d 100644 (file)
@@ -107,8 +107,7 @@ void cli_detect_pci(struct s_hardware *hardware);
 
 // CPU STUFF
 void main_show_cpu(struct s_hardware *hardware, struct s_cli_mode *cli_mode);
-void handle_cpu_commands(char *cli_line, struct s_cli_mode *cli_mode,
-                         struct s_hardware *hardware);
+void handle_cpu_commands(char *cli_line, struct s_hardware *hardware);
 
 // PXE STUFF
 void main_show_pxe(struct s_hardware *hardware);