aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-01-06 21:26:44 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-01-06 21:26:44 -0800
commitb2c00eb47e4af30b1822af3f66744bfde755c87f (patch)
treed138935c1c001d6a7109a724fa0202bc19a9bc9d /com32/hdt/hdt-cli.c
parent85c9fa1a8144edc6264bef88f5a283a4073988b9 (diff)
downloadsyslinux-b2c00eb47e4af30b1822af3f66744bfde755c87f.tar.gz
syslinux-b2c00eb47e4af30b1822af3f66744bfde755c87f.tar.xz
syslinux-b2c00eb47e4af30b1822af3f66744bfde755c87f.zip
Change () prototypes to (void)
() means the same as (...) in C, not the same as (void) as it does in C++. It is generally misused to mean (void), though. Actually write what we mean... this is C, after all. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/hdt/hdt-cli.c')
-rw-r--r--com32/hdt/hdt-cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 69a2b61f..76aed784 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -96,7 +96,7 @@ static void autocomplete_add_token_to_list(const char *token)
autocomplete_tail = new;
}
-static void autocomplete_destroy_list()
+static void autocomplete_destroy_list(void)
{
struct autocomplete_list *tmp = NULL;
@@ -727,7 +727,7 @@ out:
free(argv);
}
-static void reset_prompt()
+static void reset_prompt(void)
{
/* No need to display the prompt if we exit */
if (hdt_cli.mode != EXIT_MODE) {
@@ -779,7 +779,7 @@ void start_auto_mode(struct s_hardware *hardware)
more_printf("\n");
}
-void print_history()
+void print_history(void)
{
reset_more_printf();
for (int i = 1; i <= MAX_HISTORY_SIZE; i++) {