From: Pierre-Alexandre Meyer Date: Sat, 14 Mar 2009 19:43:44 +0000 (-0700) Subject: hdt: Make show_cli_help static X-Git-Tag: syslinux-3.74-pre12~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cd99ee165c89cd595c738586555f9b190eb73fe;p=profile%2Fivi%2Fsyslinux.git hdt: Make show_cli_help static Impact: None. show_cli_help is only used in hdt-cli.c. Let's make it static. Signed-off-by: Pierre-Alexandre Meyer --- diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c index fa14d73..6ccffda 100644 --- a/com32/hdt/hdt-cli.c +++ b/com32/hdt/hdt-cli.c @@ -119,6 +119,29 @@ static void handle_hdt_commands(char *cli_line, struct s_cli_mode *cli_mode, } } +static void show_cli_help(struct s_cli_mode *cli_mode) +{ + switch (cli_mode->mode) { + case HDT_MODE: + printf + ("Available commands are : %s %s %s %s %s %s %s %s %s %s\n", + CLI_CLEAR, CLI_EXIT, CLI_HELP, CLI_SHOW, CLI_PCI, CLI_DMI, + CLI_PXE, CLI_KERNEL, CLI_CPU, CLI_SYSLINUX); + break; + case SYSLINUX_MODE: + case KERNEL_MODE: + case PXE_MODE: + case CPU_MODE: + case PCI_MODE: + case DMI_MODE: + printf("Available commands are : %s %s %s %s\n", + CLI_CLEAR, CLI_EXIT, CLI_HELP, CLI_SHOW); + break; + case EXIT_MODE: /* Should not happen */ + break; + } +} + /* Code that manages the cli mode */ void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[]) { @@ -233,29 +256,6 @@ int do_exit(struct s_cli_mode *cli_mode) return HDT_MODE; } -void show_cli_help(struct s_cli_mode *cli_mode) -{ - switch (cli_mode->mode) { - case HDT_MODE: - printf - ("Available commands are : %s %s %s %s %s %s %s %s %s %s\n", - CLI_CLEAR, CLI_EXIT, CLI_HELP, CLI_SHOW, CLI_PCI, CLI_DMI, - CLI_PXE, CLI_KERNEL, CLI_CPU, CLI_SYSLINUX); - break; - case SYSLINUX_MODE: - case KERNEL_MODE: - case PXE_MODE: - case CPU_MODE: - case PCI_MODE: - case DMI_MODE: - printf("Available commands are : %s %s %s %s\n", - CLI_CLEAR, CLI_EXIT, CLI_HELP, CLI_SHOW); - break; - case EXIT_MODE: /* Should not happen */ - break; - } -} - void main_show_summary(struct s_hardware *hardware, struct s_cli_mode *cli_mode) { detect_pci(hardware); /* pxe is detected in the pci */ diff --git a/com32/hdt/hdt-cli.h b/com32/hdt/hdt-cli.h index 878e80e..24ae2af 100644 --- a/com32/hdt/hdt-cli.h +++ b/com32/hdt/hdt-cli.h @@ -67,7 +67,6 @@ struct s_cli_mode { char prompt[32]; }; -void show_cli_help(struct s_cli_mode *cli_mode); void start_cli_mode(struct s_hardware *hardware, int argc, char *argv[]); void main_show(char *item, struct s_hardware *hardware, struct s_cli_mode *cli_mode);