hdt: Remove unused parameter in handle_syslinux_commands
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 17:48:53 +0000 (10:48 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:31:20 +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-syslinux.c
com32/hdt/hdt-cli.c
com32/hdt/hdt-cli.h

index 8f195a2..ec6be67 100644 (file)
@@ -61,12 +61,11 @@ static void syslinux_show(char *item, struct s_hardware *hardware)
   show_syslinux_help();
 }
 
-void handle_syslinux_commands(char *cli_line, struct s_cli_mode *cli_mode,
-                              struct s_hardware *hardware)
+void handle_syslinux_commands(char *cli_line, struct s_hardware *hardware)
 {
   if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) {
     syslinux_show(strstr(cli_line, "show") + sizeof(CLI_SHOW),
-            hardware);
+                  hardware);
     return;
   }
 }
index 7171e00..eec8053 100644 (file)
@@ -203,7 +203,7 @@ void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[])
       handle_pxe_commands(cli_line, &cli_mode, hardware);
       break;
     case SYSLINUX_MODE:
-      handle_syslinux_commands(cli_line, &cli_mode, hardware);
+      handle_syslinux_commands(cli_line, hardware);
       break;
     case KERNEL_MODE:
       handle_kernel_commands(cli_line, &cli_mode, hardware);
index c6dd64a..6dd641a 100644 (file)
@@ -123,10 +123,11 @@ void handle_kernel_commands(char *cli_line, struct s_cli_mode *cli_mode,
 
 // SYSLINUX STUFF
 void main_show_syslinux(struct s_hardware *hardware);
-void handle_syslinux_commands(char *cli_line, struct s_cli_mode *cli_mode,
-                              struct s_hardware *hardware);
+void handle_syslinux_commands(char *cli_line, struct s_hardware *hardware);
 
-//VESA STUFF
+// VESA STUFF
 void main_show_vesa(struct s_hardware *hardware);
-void handle_vesa_commands(char *cli_line, struct s_cli_mode *cli_mode, struct s_hardware *hardware);
+void handle_vesa_commands(char *cli_line, struct s_cli_mode *cli_mode,
+                          struct s_hardware *hardware);
+
 #endif