From e4eac0f943dfdc2122227b16f3e6d0cd702a59d2 Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 11:13:47 -0700 Subject: [PATCH] hdt: Remove unused parameter in handle_pxe_commands 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 --- com32/hdt/hdt-cli-pxe.c | 3 +-- com32/hdt/hdt-cli.c | 2 +- com32/hdt/hdt-cli.h | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/com32/hdt/hdt-cli-pxe.c b/com32/hdt/hdt-cli-pxe.c index 52fdec9..af9c203 100644 --- a/com32/hdt/hdt-cli-pxe.c +++ b/com32/hdt/hdt-cli-pxe.c @@ -91,8 +91,7 @@ void pxe_show(char *item, struct s_hardware *hardware) show_pxe_help(); } -void handle_pxe_commands(char *cli_line, struct s_cli_mode *cli_mode, - struct s_hardware *hardware) +void handle_pxe_commands(char *cli_line, struct s_hardware *hardware) { if (!strncmp(cli_line, CLI_SHOW, sizeof(CLI_SHOW) - 1)) { pxe_show(strstr(cli_line, "show") + sizeof(CLI_SHOW), hardware); diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index 7b8d8e5..5c05d00 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -200,7 +200,7 @@ void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[]) handle_cpu_commands(cli_line, &cli_mode, hardware); break; case PXE_MODE: - handle_pxe_commands(cli_line, &cli_mode, hardware); + handle_pxe_commands(cli_line, hardware); break; case SYSLINUX_MODE: handle_syslinux_commands(cli_line, hardware); diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 82c1d16..b5784af 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -113,8 +113,7 @@ void cpu_show(char *item, struct s_hardware *hardware); // PXE STUFF void main_show_pxe(struct s_hardware *hardware, struct s_cli_mode *cli_mode); -void handle_pxe_commands(char *cli_line, struct s_cli_mode *cli_mode, - struct s_hardware *hardware); +void handle_pxe_commands(char *cli_line, struct s_hardware *hardware); // KERNEL STUFF void main_show_kernel(struct s_hardware *hardware); -- 2.7.4