summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/termios.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2011-06-17 12:34:37 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2011-06-17 12:34:37 +0000
commit18124551c344461cc333859af733ada8b0e8253d (patch)
tree7f93beddd4854548292dc1f7abe5181b2c0f4a35 /cpukit/libcsupport/src/termios.c
parent2011-06-17 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-18124551c344461cc333859af733ada8b0e8253d.tar.bz2
2011-06-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/termios.c: Added const qualifier to rtems_termios_enqueue_raw_characters(). Removed superfluous cast.
Diffstat (limited to 'cpukit/libcsupport/src/termios.c')
-rw-r--r--cpukit/libcsupport/src/termios.c4
1 files changed, 2 insertions, 2 deletions
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;