2009-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>

* console/conio.c, console/console.c, include/conio.h:
	Let *getch return "int". Remove casts.
This commit is contained in:
Ralf Corsepius
2009-12-07 16:21:07 +00:00
parent b65dd1fcb9
commit 6789d70a66
4 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2009-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/conio.c, console/console.c, include/conio.h:
Let *getch return "int". Remove casts.
2009-10-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/gba.cfg: Remove RTEMS_BSP_FAMILY.

View File

@@ -377,7 +377,7 @@ static unsigned char inputch = ASCII_CR; /**< input character value */
* @param None
* @return Selected char code
*/
char gba_getch(void)
int gba_getch(void)
{
int keyx, key = 0;

View File

@@ -74,7 +74,7 @@ static int gba_setAttributes(int minor, const struct termios *t)
/** BSP_output_char for printk support */
BSP_output_char_function_type BSP_output_char = (BSP_output_char_function_type) gba_putch;
/** BSP_poll_char for printk support */
BSP_polling_getchar_function_type BSP_poll_char = (BSP_polling_getchar_function_type) gba_getch;
BSP_polling_getchar_function_type BSP_poll_char = gba_getch;
/**
* @brief Console device driver INITIALIZE entry point

View File

@@ -82,7 +82,7 @@ void gba_putch(char _c);
void gba_puts(const char *_str);
int gba_printf(const char *_format, ...);
void gba_gotoxy(int _x, int _y);
char gba_getch(void);
int gba_getch(void);
#ifdef __cplusplus