summaryrefslogtreecommitdiffstats
path: root/osdep/getch2-win.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-05 14:48:03 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-05 14:48:03 +0000
commit824abb5a65c1de35259818956e22a24c33f318b4 (patch)
treea81ec268f4afe16439d2ec2af0bf2d2b504c321b /osdep/getch2-win.c
parent24617c7318bb4f408a6152b3885d60bee9370fc4 (diff)
downloadmpv-824abb5a65c1de35259818956e22a24c33f318b4.tar.bz2
mpv-824abb5a65c1de35259818956e22a24c33f318b4.tar.xz
Add missing 'void' keyword to parameterless function declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28267 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep/getch2-win.c')
-rw-r--r--osdep/getch2-win.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/osdep/getch2-win.c b/osdep/getch2-win.c
index 83d502f7c7..70608ea366 100644
--- a/osdep/getch2-win.c
+++ b/osdep/getch2-win.c
@@ -29,7 +29,7 @@ int screen_width=80;
int screen_height=24;
char * erase_to_end_of_line = NULL;
-void get_screen_size(){
+void get_screen_size(void){
}
static HANDLE stdin;
@@ -126,7 +126,8 @@ void getch2(void)
mplayer_put_key(r);
}
-void getch2_enable(){
+void getch2_enable(void)
+{
DWORD retval;
stdin = GetStdHandle(STD_INPUT_HANDLE);
if(!GetNumberOfConsoleInputEvents(stdin,&retval))
@@ -137,7 +138,8 @@ void getch2_enable(){
else getch2_status=1;
}
-void getch2_disable(){
+void getch2_disable(void)
+{
if(!getch2_status) return; // already disabled / never enabled
getch2_status=0;
}