summaryrefslogtreecommitdiffstats
path: root/c/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib')
-rw-r--r--c/src/lib/libbsp/m68k/dmv152/console/console.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/c/src/lib/libbsp/m68k/dmv152/console/console.c b/c/src/lib/libbsp/m68k/dmv152/console/console.c
index 137b93481d..ab954accaf 100644
--- a/c/src/lib/libbsp/m68k/dmv152/console/console.c
+++ b/c/src/lib/libbsp/m68k/dmv152/console/console.c
@@ -59,10 +59,7 @@ void console_outbyte_polled(
* This routine polls for a character.
*/
-int console_inbyte_nonblocking(
- int port,
- char *c
-)
+int console_inbyte_nonblocking(int port)
{
rtems_unsigned32 control;
rtems_unsigned32 data;
@@ -79,10 +76,10 @@ int console_inbyte_nonblocking(
Z8x30_READ_CONTROL( control, RR_0, rr_0 );
if ( !(rr_0 & RR_0_RX_DATA_AVAILABLE) )
- return 0;
+ return -1;
Z8x30_READ_DATA( data, ch );
- return ch;
+ return (int) ch;
}
/*