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

index a46aae2..a383aa2 100644 (file)
@@ -163,8 +163,7 @@ void kernel_show(char *item, struct s_hardware *hardware)
   show_kernel_help();
 }
 
-void handle_kernel_commands(char *cli_line, struct s_cli_mode *cli_mode,
-          struct s_hardware *hardware)
+void handle_kernel_commands(char *cli_line, struct s_hardware *hardware)
 {
   if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) {
     kernel_show(strstr(cli_line, "show") + sizeof(CLI_SHOW),
index 4422e9f..7b8d8e5 100644 (file)
@@ -206,7 +206,7 @@ void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[])
       handle_syslinux_commands(cli_line, hardware);
       break;
     case KERNEL_MODE:
-      handle_kernel_commands(cli_line, &cli_mode, hardware);
+      handle_kernel_commands(cli_line, hardware);
       break;
     case EXIT_MODE:
       break;  /* should not happen */
index 463045d..82c1d16 100644 (file)
@@ -118,8 +118,7 @@ void handle_pxe_commands(char *cli_line, struct s_cli_mode *cli_mode,
 
 // KERNEL STUFF
 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);
+void handle_kernel_commands(char *cli_line, struct s_hardware *hardware);
 
 // SYSLINUX STUFF
 void main_show_syslinux(struct s_hardware *hardware);