summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/ppp_tty.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-05-06 15:26:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-05-06 15:26:52 +0000
commit06f4fe5052a7eb621f5a065d69a6840a18baa2cc (patch)
tree3cc0a9ecb09a78f829d4ea76426b7a5a55377fb7 /cpukit/libnetworking/net/ppp_tty.c
parent2005-05-06 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-06f4fe5052a7eb621f5a065d69a6840a18baa2cc.tar.bz2
2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h, libnetworking/net/if_ppp.c, libnetworking/net/ppp_tty.c: Removed warnings.
Diffstat (limited to 'cpukit/libnetworking/net/ppp_tty.c')
-rw-r--r--cpukit/libnetworking/net/ppp_tty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/net/ppp_tty.c b/cpukit/libnetworking/net/ppp_tty.c
index 45e21362b3..d4fc3b3a5e 100644
--- a/cpukit/libnetworking/net/ppp_tty.c
+++ b/cpukit/libnetworking/net/ppp_tty.c
@@ -562,7 +562,7 @@ pppasyncctlp(sc)
int
pppstart(struct rtems_termios_tty *tp)
{
- char *sendBegin;
+ u_char *sendBegin;
u_long ioffset = (u_long )0;
struct mbuf *m = (struct mbuf *)0;
struct ppp_softc *sc = tp->t_sc;
@@ -604,7 +604,7 @@ pppstart(struct rtems_termios_tty *tp)
sc->sc_outflag |= SC_TX_LASTCHAR;
sc->sc_outflag &=~(SC_TX_FCS);
sc->sc_outchar = (u_char)PPP_FLAG;
- (*tp->device.write)(tp->minor, &sc->sc_outchar, 1);
+ (*tp->device.write)(tp->minor, (char *)&sc->sc_outchar, 1);
return(0);
}
}
@@ -641,7 +641,7 @@ pppstart(struct rtems_termios_tty *tp)
}
/* write out the character(s) and update the stats */
- (*tp->device.write)(tp->minor, sendBegin, (ioffset > 0) ? ioffset : 1);
+ (*tp->device.write)(tp->minor, (char *)sendBegin, (ioffset > 0) ? ioffset : 1);
sc->sc_stats.ppp_obytes += (ioffset > 0) ? ioffset : 1;
sc->sc_outoff += ioffset;
}