2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>

* libcsupport/src/termios.c: Remove unnecessary type casts.
This commit is contained in:
Ralf Corsepius
2005-01-18 15:49:32 +00:00
parent 52399be0cf
commit 1b42bdb6ec
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libcsupport/src/termios.c: Remove unnecessary type casts.
2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org> 2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* sapi/include/rtems/io.h : size_t device_name_length. * sapi/include/rtems/io.h : size_t device_name_length.

View File

@@ -463,7 +463,7 @@ termios_set_flowctrl(struct rtems_termios_tty *tty)
if (tty->rawOutBufState != rob_idle) { if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */ /* if chars available, call write function... */
(*tty->device.write)(tty->minor, (*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
} }
/* reenable interrupts */ /* reenable interrupts */
rtems_interrupt_enable(level); rtems_interrupt_enable(level);
@@ -1191,7 +1191,7 @@ rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
if (tty->rawOutBufState != rob_idle) { if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */ /* if chars available, call write function... */
(*tty->device.write)(tty->minor, (*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
} }
/* reenable interrupts */ /* reenable interrupts */
rtems_interrupt_enable(level); rtems_interrupt_enable(level);
@@ -1367,7 +1367,7 @@ rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
} }
tty->rawOutBufState = rob_busy; /*apm*/ tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(tty->minor, (*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[newTail], &tty->rawOutBuf.theBuf[newTail],
nToSend); nToSend);
} }
tty->rawOutBuf.Tail = newTail; /*apm*/ tty->rawOutBuf.Tail = newTail; /*apm*/