hdt: Remove unused parameter main_show_syslinux
authorPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 17:39:36 +0000 (10:39 -0700)
committerPierre-Alexandre Meyer <pierre@mouraf.org>
Sat, 14 Mar 2009 22:30:28 +0000 (15:30 -0700)
Impact: Signature change.

The cli mode information is already in the function name
'main_show_syslinux'. 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 f3130dd..030b194 100644 (file)
@@ -36,8 +36,7 @@
 #include "hdt-cli.h"
 #include "hdt-common.h"
 
-void main_show_syslinux(struct s_hardware *hardware,
-                        struct s_cli_mode *cli_mode)
+void main_show_syslinux(struct s_hardware *hardware)
 {
   more_printf("SYSLINUX\n");
   more_printf(" Bootloader : %s\n", hardware->syslinux_fs);
@@ -56,7 +55,7 @@ void show_syslinux_help()
 void syslinux_show(char *item, struct s_hardware *hardware)
 {
   if (!strncmp(item, CLI_SHOW_LIST, sizeof(CLI_SHOW_LIST) - 1)) {
-    main_show_syslinux(hardware, NULL);
+    main_show_syslinux(hardware);
     return;
   }
   show_syslinux_help();
index 1e75a56..7171e00 100644 (file)
@@ -323,7 +323,7 @@ void main_show(char *item, struct s_hardware *hardware,
     return;
   }
   if (!strncmp(item, CLI_SYSLINUX, sizeof(CLI_SYSLINUX))) {
-    main_show_syslinux(hardware, cli_mode);
+    main_show_syslinux(hardware);
     return;
   }
   if (!strncmp(item, CLI_KERNEL, sizeof(CLI_KERNEL))) {
index 27f2d03..c6dd64a 100644 (file)
@@ -122,8 +122,7 @@ void handle_kernel_commands(char *cli_line, struct s_cli_mode *cli_mode,
                             struct s_hardware *hardware);
 
 // SYSLINUX STUFF
-void main_show_syslinux(struct s_hardware *hardware,
-                        struct s_cli_mode *cli_mode);
+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);