diff options
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r-- | cpukit/libcsupport/include/rtems/libio.h | 2 | ||||
-rw-r--r-- | cpukit/libcsupport/src/termios.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h index 73c52e31d7..2538b9fe84 100644 --- a/cpukit/libcsupport/include/rtems/libio.h +++ b/cpukit/libcsupport/include/rtems/libio.h @@ -1647,7 +1647,7 @@ rtems_status_code rtems_termios_ioctl( int rtems_termios_enqueue_raw_characters( void *ttyp, - char *buf, + const char *buf, int len ); diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c index 4085c5e4a2..b687d27e9c 100644 --- a/cpukit/libcsupport/src/termios.c +++ b/cpukit/libcsupport/src/termios.c @@ -636,7 +636,7 @@ rtems_termios_puts ( rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { - (*tty->device.write)(tty->minor, (void *)buf, len); + (*tty->device.write)(tty->minor, buf, len); return; } newHead = tty->rawOutBuf.Head; @@ -1124,7 +1124,7 @@ void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty) * Returns the number of characters dropped because of overflow. */ int -rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len) +rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len) { struct rtems_termios_tty *tty = ttyp; unsigned int newTail; |