aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-04-16 04:30:38 +0000
committerMike Frysinger <vapier@gentoo.org>2005-04-16 04:30:38 +0000
commit4e5936ef9501da7d2f010d8c4f3703505b28b2c5 (patch)
tree0fb5b9eaab153b533ffe5b228d70f05ebf0b3b16 /editors
parent5c63a729681991c86fc94fbe6f9f18b8cf876810 (diff)
downloadbusybox-4e5936ef9501da7d2f010d8c4f3703505b28b2c5.tar.gz
In Bug 208, bernhardf writes:
On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure.
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/editors/vi.c b/editors/vi.c
index cd6cf0ea1..5a47f5a23 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2340,7 +2340,7 @@ static Byte readit(void) // read (maybe cursor) key from stdin
}
//----- IO Routines --------------------------------------------
-static Byte get_one_char()
+static Byte get_one_char(void)
{
static Byte c;
@@ -2600,25 +2600,25 @@ static void place_cursor(int row, int col, int opti)
}
//----- Erase from cursor to end of line -----------------------
-static void clear_to_eol()
+static void clear_to_eol(void)
{
write1(Ceol); // Erase from cursor to end of line
}
//----- Erase from cursor to end of screen -----------------------
-static void clear_to_eos()
+static void clear_to_eos(void)
{
write1(Ceos); // Erase from cursor to end of screen
}
//----- Start standout mode ------------------------------------
-static void standout_start() // send "start reverse video" sequence
+static void standout_start(void) // send "start reverse video" sequence
{
write1(SOs); // Start reverse video mode
}
//----- End standout mode --------------------------------------
-static void standout_end() // send "end reverse video" sequence
+static void standout_end(void) // send "end reverse video" sequence
{
write1(SOn); // End reverse video mode
}
@@ -2648,7 +2648,7 @@ static void Indicate_Error(void)
//----- Screen[] Routines --------------------------------------
//----- Erase the Screen[] memory ------------------------------
-static void screen_erase()
+static void screen_erase(void)
{
memset(screen, ' ', screensize); // clear new screen
}