diff --git a/src/conio/ansi_cio.c b/src/conio/ansi_cio.c index 88c882f6c394dce530514ccf7a307801c3629d58..aad393d5b47352c6bc15823876d89cc71864adbc 100644 --- a/src/conio/ansi_cio.c +++ b/src/conio/ansi_cio.c @@ -916,12 +916,12 @@ int ansi_readbyte_cb(void) int ansi_writebyte_cb(unsigned char ch) { - fwrite(&ch,1,1,stdout); + return(fwrite(&ch,1,1,stdout)); } int ansi_writestr_cb(unsigned char *str, size_t len) { - fwrite(str,len,1,stdout); + return(fwrite(str,len,1,stdout)); } int ansi_initio_cb(void) @@ -954,6 +954,7 @@ int ansi_initio_cb(void) atexit(ansi_fixterm); } #endif + return(0); } #if defined(__BORLANDC__) diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c index ef8be5ad3a8e381b4a217ee738df90f5a1262fd2..4cf4c508cd354cdbb6a69698116bea4ac09ae48f 100644 --- a/src/conio/bitmap_con.c +++ b/src/conio/bitmap_con.c @@ -703,7 +703,7 @@ error_return: } /* vstatlock is held */ -static void bitmap_draw_cursor() +static void bitmap_draw_cursor(void) { int x; int y; diff --git a/src/conio/win32cio.c b/src/conio/win32cio.c index 234e9970709e055abaa6cbc4b4350bacdc52002b..8b5e931830be08586c471993ebeeac7c458153ad 100644 --- a/src/conio/win32cio.c +++ b/src/conio/win32cio.c @@ -833,7 +833,7 @@ void win32_getcustomcursor(int *s, int *e, int *r, int *b, int *v) HANDLE h; if((h=GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) - return(0); + return; GetConsoleCursorInfo(h, &ci); if(s) @@ -854,7 +854,7 @@ void win32_setcustomcursor(int s, int e, int r, int b, int v) HANDLE h; if((h=GetStdHandle(STD_INPUT_HANDLE)) == INVALID_HANDLE_VALUE) - return(0); + return; ci.bVisible=v; if(e>s)