From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 17:39:36 +0000 (-0700) Subject: hdt: Remove unused parameter main_show_syslinux X-Git-Tag: syslinux-3.74-pre12~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee33c826fc33748f492a2017123c3ed518d25a83;p=platform%2Fupstream%2Fsyslinux.git hdt: Remove unused parameter main_show_syslinux 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 --- diff --git a/com32/hdt/hdt-cli-syslinux.c b/com32/hdt/hdt-cli-syslinux.c index f3130dd..030b194 100644 --- a/com32/hdt/hdt-cli-syslinux.c +++ b/com32/hdt/hdt-cli-syslinux.c @@ -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(); diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index 1e75a56..7171e00 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -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))) { diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 27f2d03..c6dd64a 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -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);