summaryrefslogtreecommitdiff
path: root/com32/cmenu
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-01-10 12:41:26 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-01-10 12:41:26 -0800
commita7fb4143d599529def315c444c83a8e1aac734d2 (patch)
tree32746d4d18e181745fe52f724dfafe379dfce18c /com32/cmenu
parentf9a7f01fee0a6a1451e083441c3dd0531eb4a8a9 (diff)
downloadsyslinux-a7fb4143d599529def315c444c83a8e1aac734d2.tar.gz
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@zytor.com>
Diffstat (limited to 'com32/cmenu')
-rw-r--r--com32/cmenu/adv_menu.tpl4
-rw-r--r--com32/cmenu/complex.c2
-rw-r--r--com32/cmenu/libmenu/passwords.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/com32/cmenu/adv_menu.tpl b/com32/cmenu/adv_menu.tpl
index be3c558e..a1a5d96a 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 6013e722..f5175fa9 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 06f4cfb3..44ce461f 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;