cmenu: clean up some () that should be (void)
authorH. Peter Anvin <hpa@zytor.com>
Sun, 10 Jan 2010 20:41:26 +0000 (12:41 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 10 Jan 2010 20:41:26 +0000 (12:41 -0800)
() is not a prototype, and means (...) not (void) in C.
Replace with (void).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/cmenu/adv_menu.tpl
com32/cmenu/complex.c
com32/cmenu/libmenu/passwords.c

index be3c558..a1a5d96 100644 (file)
@@ -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);
 }
index 6013e72..f5175fa 100644 (file)
@@ -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;
index 06f4cfb..44ce461 100644 (file)
@@ -148,7 +148,7 @@ void init_passwords(const char *filename)
     fclose(f);
 }
 
-void close_passwords()
+void close_passwords(void)
 {
     int i;