[syslinux:master] cmenu: clean up some () that should be (void)

syslinux-bot for H. Peter Anvin hpa at zytor.com
Sun Jan 10 12:42:02 PST 2010


Commit-ID:  a7fb4143d599529def315c444c83a8e1aac734d2
Gitweb:     http://syslinux.zytor.com/commit/a7fb4143d599529def315c444c83a8e1aac734d2
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 10 Jan 2010 12:41:26 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 10 Jan 2010 12:41:26 -0800

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 <hpa at zytor.com>


---
 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;
 



More information about the Syslinux-commits mailing list