diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-23 14:20:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-09-30 14:06:09 +0200 |
commit | 805360b8e50e69573ec446674f640c9b7704cb34 (patch) | |
tree | ebb4d19349899c1b461ea5ecf53cede08dbfcce2 /cpukit/libnetworking/net | |
parent | libnetworking: Update due to Termios changes (diff) | |
download | rtems-805360b8e50e69573ec446674f640c9b7704cb34.tar.bz2 |
pppd: Fix warnings
Diffstat (limited to 'cpukit/libnetworking/net')
-rw-r--r-- | cpukit/libnetworking/net/if_ppp.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpukit/libnetworking/net/if_ppp.c b/cpukit/libnetworking/net/if_ppp.c index 3f9c16fff7..a1d7a62568 100644 --- a/cpukit/libnetworking/net/if_ppp.c +++ b/cpukit/libnetworking/net/if_ppp.c @@ -89,6 +89,7 @@ #include <termios.h> #include <rtems/termiostypes.h> #include <rtems/rtems_bsdnet.h> +#include <rtems/rtemspppd.h> #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> @@ -257,7 +258,9 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg) rtems_event_set events; int iprocess = (int )0; struct ppp_softc *sc = (struct ppp_softc *)arg; +#ifdef LALL_X struct mbuf *mp; +#endif struct mbuf *mf; struct mbuf *m; struct rtems_termios_tty *tp; @@ -322,7 +325,9 @@ static rtems_task ppp_txdaemon(rtems_task_argument arg) /* loop over all mbufs in chain */ mf = NULL; +#ifdef LALL_X mp = NULL; +#endif m = sc->sc_outm; sc->sc_outmc = m; @@ -1421,7 +1426,10 @@ ppp_inproc(struct ppp_softc *sc, struct mbuf *m) struct ifnet *ifp = &sc->sc_if; struct ifqueue *inq; int s, ilen, proto, rv; - u_char *cp, adrs, ctrl; + u_char *cp; +#ifdef VJC + u_char adrs, ctrl; +#endif struct mbuf *mp; #ifdef PPP_COMPRESS struct mbuf *dmp = NULL; @@ -1443,8 +1451,10 @@ ppp_inproc(struct ppp_softc *sc, struct mbuf *m) } cp = mtod(m, u_char *); +#ifdef VJC adrs = PPP_ADDRESS(cp); ctrl = PPP_CONTROL(cp); +#endif proto = PPP_PROTOCOL(cp); if (m->m_flags & M_ERRMARK) { |