From e2fe1ea35bab1edb1ae275f5e599f7f006090a5b Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 12:46:29 -0700 Subject: [PATCH] hdt: Remove unused parameters in start_cli_mode Impact: Signature change. argc and argv aren't used in start_cli_mode. This fixes 2 compilation warnings. Signed-off-by: Pierre-Alexandre Meyer --- com32/hdt/hdt-cli.c | 2 +- com32/hdt/hdt-cli.h | 2 +- com32/hdt/hdt.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index 6ccffda..ecf1767 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -143,7 +143,7 @@ static void show_cli_help(struct s_cli_mode *cli_mode) } /* Code that manages the cli mode */ -void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[]) +void start_cli_mode(struct s_hardware *hardware) { char cli_line[256]; struct s_cli_mode cli_mode; diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 24ae2af..053940f 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -67,7 +67,7 @@ struct s_cli_mode { char prompt[32]; }; -void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[]); +void start_cli_mode(struct s_hardware *hardware); void main_show(char *item, struct s_hardware *hardware, struct s_cli_mode *cli_mode); int do_exit(struct s_cli_mode *cli_mode); diff --git a/com32/hdt/hdt.c b/com32/hdt/hdt.c index ebcf465..2ff095f 100644 --- a/com32/hdt/hdt.c +++ b/com32/hdt/hdt.c @@ -67,12 +67,12 @@ int main(int argc, char *argv[]) printf("%s\n", version_string); if ((arg = find_argument(argv + 1, "nomenu"))) - start_cli_mode(&hardware, argc, argv); + start_cli_mode(&hardware); else { int return_code = start_menu_mode(&hardware, version_string); if (return_code == HDT_RETURN_TO_CLI) - start_cli_mode(&hardware,argc,argv); + start_cli_mode(&hardware); else return return_code; } -- 2.7.4