From a7fb4143d599529def315c444c83a8e1aac734d2 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 10 Jan 2010 12:41:26 -0800 Subject: [PATCH] cmenu: clean up some () that should be (void) () is not a prototype, and means (...) not (void) in C. Replace with (void). Signed-off-by: H. Peter Anvin --- com32/cmenu/adv_menu.tpl | 4 ++-- com32/cmenu/complex.c | 2 +- com32/cmenu/libmenu/passwords.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/com32/cmenu/adv_menu.tpl b/com32/cmenu/adv_menu.tpl index be3c558..a1a5d96 100644 --- a/com32/cmenu/adv_menu.tpl +++ b/com32/cmenu/adv_menu.tpl @@ -183,12 +183,12 @@ TIMEOUTCODE timeout(const char *cmd) } } -TIMEOUTCODE ontimeout() +TIMEOUTCODE ontimeout(void) { return timeout(timeoutcmd); } -TIMEOUTCODE ontotaltimeout() +TIMEOUTCODE ontotaltimeout(void) { return timeout(totaltimeoutcmd); } diff --git a/com32/cmenu/complex.c b/com32/cmenu/complex.c index 6013e72..f5175fa 100644 --- a/com32/cmenu/complex.c +++ b/com32/cmenu/complex.c @@ -54,7 +54,7 @@ char username[12]; // Name of user currently using the system /* End globals */ -TIMEOUTCODE ontimeout() +TIMEOUTCODE ontimeout(void) { beep(); return CODE_WAIT; diff --git a/com32/cmenu/libmenu/passwords.c b/com32/cmenu/libmenu/passwords.c index 06f4cfb..44ce461 100644 --- a/com32/cmenu/libmenu/passwords.c +++ b/com32/cmenu/libmenu/passwords.c @@ -148,7 +148,7 @@ void init_passwords(const char *filename) fclose(f); } -void close_passwords() +void close_passwords(void) { int i; -- 2.7.4