Changeset 805360b in rtems


Ignore:
Timestamp:
Sep 23, 2014, 12:20:35 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
456eab7d
Parents:
33739be
git-author:
Sebastian Huber <sebastian.huber@…> (09/23/14 12:20:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/30/14 12:06:09)
Message:

pppd: Fix warnings

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/net/if_ppp.c

    r33739be r805360b  
    9090#include <rtems/termiostypes.h>
    9191#include <rtems/rtems_bsdnet.h>
     92#include <rtems/rtemspppd.h>
    9293#include <sys/param.h>
    9394#include <sys/systm.h>
     
    258259  int                         iprocess = (int               )0;
    259260  struct ppp_softc           *sc       = (struct ppp_softc *)arg;
     261#ifdef LALL_X
    260262  struct mbuf                *mp;
     263#endif
    261264  struct mbuf                *mf;
    262265  struct mbuf                *m;
     
    323326      /* loop over all mbufs in chain */
    324327      mf     = NULL;
     328#ifdef LALL_X
    325329      mp     = NULL;
     330#endif
    326331      m      = sc->sc_outm;
    327332
     
    14221427    struct ifqueue *inq;
    14231428    int s, ilen, proto, rv;
    1424     u_char *cp, adrs, ctrl;
     1429    u_char *cp;
     1430#ifdef VJC
     1431    u_char adrs, ctrl;
     1432#endif
    14251433    struct mbuf *mp;
    14261434#ifdef PPP_COMPRESS
     
    14441452
    14451453    cp = mtod(m, u_char *);
     1454#ifdef VJC
    14461455    adrs = PPP_ADDRESS(cp);
    14471456    ctrl = PPP_CONTROL(cp);
     1457#endif
    14481458    proto = PPP_PROTOCOL(cp);
    14491459
  • cpukit/pppd/rtemspppd.h

    r33739be r805360b  
    77 * found in the file LICENSE in this distribution or at
    88 * http://www.rtems.org/license/LICENSE.
    9  *
    10  *  $Id$
    119 */
    1210
     
    1412#define RTEMSPPPD_H
    1513
     14#ifdef __cplusplus
     15extern "C" {
     16#endif /* __cplusplus */
    1617
    1718/* define hook function identifiers */
     
    3839int rtems_pppd_disconnect(void);
    3940
     41struct rtems_bsdnet_ifconfig;
     42
     43int rtems_ppp_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
     44
     45#ifdef __cplusplus
     46}
     47#endif /* __cplusplus */
     48
    4049#endif
  • testsuites/samples/pppd/netconfig.h

    r33739be r805360b  
    33
    44#include <bsp.h>
    5 
    6 /* external function prototypes */
    7 extern int rtems_ppp_driver_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
     5#include <rtems/rtemspppd.h>
    86
    97/* Default network interface */
Note: See TracChangeset for help on using the changeset viewer.