summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-02-02 00:06:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-02-02 00:06:18 +0000
commitce92867bea9b027af4119c694aa6b72a043b4fea (patch)
treea62823bc40a5de3dfbf10476af491cb7c51ec50d /cpukit/libcsupport
parentWant only two serial ports for now. (diff)
downloadrtems-ce92867bea9b027af4119c694aa6b72a043b4fea.tar.bz2
2005-02-01 Joel Sherrill <joel@OARcorp.com>
* libblock/include/rtems/bdbuf.h, libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c, libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/mutex.inl : Remove warnings.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/include/rtems/termiostypes.h2
-rw-r--r--cpukit/libcsupport/src/termios.c18
2 files changed, 11 insertions, 9 deletions
diff --git a/cpukit/libcsupport/include/rtems/termiostypes.h b/cpukit/libcsupport/include/rtems/termiostypes.h
index b4c1369c36..67233895d4 100644
--- a/cpukit/libcsupport/include/rtems/termiostypes.h
+++ b/cpukit/libcsupport/include/rtems/termiostypes.h
@@ -159,7 +159,7 @@ void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty);
* FIXME: this should move to termios.h!
* put a string to output ring buffer
*/
-void rtems_termios_puts (const char *buf,
+void rtems_termios_puts (const void *buf,
int len,
struct rtems_termios_tty *tty);
/*
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index 14031f396d..deb231866b 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -626,14 +626,16 @@ rtems_termios_ioctl (void *arg)
* Send characters to device-specific code
*/
void
-rtems_termios_puts (const char *buf, int len, struct rtems_termios_tty *tty)
+rtems_termios_puts (
+ const void *_buf, int len, struct rtems_termios_tty *tty)
{
+ const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
- (*tty->device.write)(tty->minor, buf, len);
+ (*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
@@ -1032,8 +1034,8 @@ fillBufferQueue (struct rtems_termios_tty *tty)
|| (tty->flow_ctrl & FL_OSTOP))) {
/* XON should be sent now... */
(*tty->device.write)(tty->minor,
- &(tty->termios.c_cc[VSTART]),
- 1);
+ (void *)&(tty->termios.c_cc[VSTART]),
+ 1);
}
else if (tty->flow_ctrl & FL_MDRTS) {
tty->flow_ctrl &= ~FL_IRTSOFF;
@@ -1215,8 +1217,8 @@ rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
(*tty->device.write)(tty->minor,
- &(tty->termios.c_cc[VSTOP]),
- 1);
+ (void *)&(tty->termios.c_cc[VSTOP]),
+ 1);
}
}
else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF))
@@ -1270,7 +1272,7 @@ rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor,
- &(tty->termios.c_cc[VSTOP]), 1);
+ (void *)&(tty->termios.c_cc[VSTOP]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;
@@ -1290,7 +1292,7 @@ rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
* Therefore the dequeue "length" should be reduced by 1
*/
(*tty->device.write)(tty->minor,
- &(tty->termios.c_cc[VSTART]), 1);
+ (void *)&(tty->termios.c_cc[VSTART]), 1);
rtems_interrupt_disable(level);
tty->t_dqlen--;