aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh
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/rosh
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/rosh')
-rw-r--r--com32/rosh/rosh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index 9a4edae2..720d8644 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -37,7 +37,7 @@
#define APP_YEAR "2008"
#define APP_VER "beta-b032"
-void rosh_version()
+void rosh_version(void)
{
printf("%s v %s; (c) %s %s.\n", APP_LONGNAME, APP_VER, APP_YEAR,
APP_AUTHOR);
@@ -224,7 +224,7 @@ void rosh_print_tc(struct termios *tio)
* Switches console over to raw input mode. Allows get_key to get just
* 1 key sequence (without delay or display)
*/
-void rosh_console_raw()
+void rosh_console_raw(void)
{
// struct termios itio, ntio;
// tcgetattr(0, &itio);
@@ -241,7 +241,7 @@ void rosh_console_raw()
/*
* Switches back to standard getline mode.
*/
-void rosh_console_std()
+void rosh_console_std(void)
{
// struct termios itio, ntio;
console_ansi_std();
@@ -252,7 +252,7 @@ void rosh_console_std()
* Attempts to get a single key from the console
* returns key pressed
*/
-int rosh_getkey()
+int rosh_getkey(void)
{
int inc;