forked from Imagelibrary/rtems
2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h, libnetworking/net/if_ppp.c, libnetworking/net/ppp_tty.c: Removed warnings.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2005-05-06 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* libnetworking/net/if.h, libnetworking/net/if_ppp.c,
|
||||||
|
libnetworking/net/ppp_tty.c: Removed warnings.
|
||||||
|
|
||||||
2005-05-06 Joel Sherrill <joel@OARcorp.com>
|
2005-05-06 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* libblock/src/blkdev.c, libfs/src/dosfs/fat_file.c,
|
* libblock/src/blkdev.c, libfs/src/dosfs/fat_file.c,
|
||||||
|
|||||||
@@ -39,6 +39,8 @@
|
|||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
#include <sys/mbuf.h>
|
||||||
|
|
||||||
#if defined(__rtems__)
|
#if defined(__rtems__)
|
||||||
/*
|
/*
|
||||||
* FIXME - HACK: BSD defines __BSD_VISIBLE in sys/cdefs.h
|
* FIXME - HACK: BSD defines __BSD_VISIBLE in sys/cdefs.h
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg)
|
|||||||
|
|
||||||
/* write out frame byte to start the transmission */
|
/* write out frame byte to start the transmission */
|
||||||
sc->sc_outchar = (u_char)PPP_FLAG;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check to see if we need to free some empty mbufs */
|
/* check to see if we need to free some empty mbufs */
|
||||||
|
|||||||
@@ -562,7 +562,7 @@ pppasyncctlp(sc)
|
|||||||
int
|
int
|
||||||
pppstart(struct rtems_termios_tty *tp)
|
pppstart(struct rtems_termios_tty *tp)
|
||||||
{
|
{
|
||||||
char *sendBegin;
|
u_char *sendBegin;
|
||||||
u_long ioffset = (u_long )0;
|
u_long ioffset = (u_long )0;
|
||||||
struct mbuf *m = (struct mbuf *)0;
|
struct mbuf *m = (struct mbuf *)0;
|
||||||
struct ppp_softc *sc = tp->t_sc;
|
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_LASTCHAR;
|
||||||
sc->sc_outflag &=~(SC_TX_FCS);
|
sc->sc_outflag &=~(SC_TX_FCS);
|
||||||
sc->sc_outchar = (u_char)PPP_FLAG;
|
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);
|
return(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -641,7 +641,7 @@ pppstart(struct rtems_termios_tty *tp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* write out the character(s) and update the stats */
|
/* 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_stats.ppp_obytes += (ioffset > 0) ? ioffset : 1;
|
||||||
sc->sc_outoff += ioffset;
|
sc->sc_outoff += ioffset;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user