Changeset 42e10fa2 in rtems


Ignore:
Timestamp:
Sep 1, 2008, 4:56:33 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
320ffc35
Parents:
fbf3f98
Message:

Stop using old-style function definitions.

Location:
cpukit/libnetworking/net
Files:
10 edited

Legend:

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

    rfbf3f98 r42e10fa2  
    309309 */
    310310void
    311 ether_input(ifp, eh, m)
    312         struct ifnet *ifp;
    313         register struct ether_header *eh;
    314         struct mbuf *m;
     311ether_input(struct ifnet *ifp, struct ether_header *eh, struct mbuf *m)
    315312{
    316313        register struct ifqueue *inq;
     
    576573 */
    577574int
    578 ether_addmulti(ifr, ac)
    579         struct ifreq *ifr;
    580         register struct arpcom *ac;
     575ether_addmulti(struct ifreq *ifr, struct arpcom *ac)
    581576{
    582577        register struct ether_multi *enm;
     
    669664 */
    670665int
    671 ether_delmulti(ifr, ac)
    672         struct ifreq *ifr;
    673         register struct arpcom *ac;
     666ether_delmulti(struct ifreq *ifr, struct arpcom *ac)
    674667{
    675668        register struct ether_multi *enm;
  • cpukit/libnetworking/net/if_loop.c

    rfbf3f98 r42e10fa2  
    102102struct  ifnet loif[NLOOP];
    103103
    104 /* ARGSUSED */
    105104void
    106 rtems_bsdnet_loopattach(dummy)
    107         void *dummy;
     105rtems_bsdnet_loopattach(void *dummy)
    108106{
    109107        register struct ifnet *ifp;
     
    130128
    131129int
    132 looutput(ifp, m, dst, rt)
    133         struct ifnet *ifp;
    134         register struct mbuf *m;
    135         struct sockaddr *dst;
    136         register struct rtentry *rt;
     130looutput(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
     131    struct rtentry *rt)
    137132{
    138133        int s, isr;
     
    219214}
    220215
    221 /* ARGSUSED */
    222216static void
    223 lortrequest(cmd, rt, sa)
    224         int cmd;
    225         struct rtentry *rt;
    226         struct sockaddr *sa;
     217lortrequest(int cmd, struct rtentry *rt, struct sockaddr *sa)
    227218{
    228219        if (rt) {
     
    241232 * Process an ioctl request.
    242233 */
    243 /* ARGSUSED */
    244234static int
    245 loioctl(ifp, cmd, data)
    246         register struct ifnet *ifp;
    247         ioctl_command_t cmd;
    248         caddr_t data;
     235loioctl(struct ifnet *ifp, ioctl_command_t cmd, caddr_t data)
    249236{
    250237        register struct ifaddr *ifa;
  • cpukit/libnetworking/net/if_ppp.c

    rfbf3f98 r42e10fa2  
    494494 */
    495495struct ppp_softc *
    496 pppalloc(pid)
    497     pid_t pid;
     496pppalloc(pid_t pid)
    498497{
    499498    int nppp, i;
     
    539538 */
    540539void
    541 pppdealloc(sc)
    542     struct ppp_softc *sc;
     540pppdealloc(struct ppp_softc *sc)
    543541{
    544542    struct mbuf *m;
     
    620618 */
    621619int
    622 pppioctl(sc, cmd, data, flag, p)
    623     struct ppp_softc *sc;
    624     ioctl_command_t cmd;
    625     caddr_t data;
    626     int flag;
    627     struct proc *p;
     620pppioctl(struct ppp_softc *sc, ioctl_command_t cmd, caddr_t data,
     621    int flag, struct proc *p)
    628622{
    629623    int s, flags, mru, npx, taskid;
     
    945939 */
    946940int
    947 pppoutput(ifp, m0, dst, rtp)
    948     struct ifnet *ifp;
    949     struct mbuf *m0;
    950     struct sockaddr *dst;
    951     struct rtentry *rtp;
     941pppoutput(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
     942    struct rtentry *rtp)
    952943{
    953944    register struct ppp_softc *sc = &ppp_softc[ifp->if_unit];
     
    11211112 */
    11221113static void
    1123 ppp_requeue(sc)
    1124     struct ppp_softc *sc;
     1114ppp_requeue(struct ppp_softc *sc)
    11251115{
    11261116    struct mbuf *m, **mpp;
     
    11741164 */
    11751165struct mbuf *
    1176 ppp_dequeue(sc)
    1177     struct ppp_softc *sc;
     1166ppp_dequeue(struct ppp_softc *sc)
    11781167{
    11791168#ifdef PPP_COMPRESS
     
    13181307 */
    13191308static void
    1320 ppp_ccp(sc, m, rcvd)
    1321     struct ppp_softc *sc;
    1322     struct mbuf *m;
    1323     int rcvd;
     1309ppp_ccp(struct ppp_softc *sc, struct mbuf *m, int rcvd)
    13241310{
    13251311    u_char *dp, *ep;
     
    14151401 */
    14161402static void
    1417 ppp_ccp_closed(sc)
    1418     struct ppp_softc *sc;
     1403ppp_ccp_closed(struct ppp_softc *sc)
    14191404{
    14201405    if (sc->sc_xc_state) {
     
    14371422
    14381423static struct mbuf *
    1439 ppp_inproc(sc, m)
    1440     struct ppp_softc *sc;
    1441     struct mbuf *m;
     1424ppp_inproc(struct ppp_softc *sc, struct mbuf *m)
    14421425{
    14431426    struct mbuf  *mf = (struct mbuf *)0;
     
    17381721
    17391722static void
    1740 pppdumpm(m0)
    1741     struct mbuf *m0;
     1723pppdumpm(struct mbuf *m0)
    17421724{
    17431725    char buf[3*MAX_DUMP_BYTES+4];
  • cpukit/libnetworking/net/ppp_tty.c

    rfbf3f98 r42e10fa2  
    177177
    178178void
    179 pppasyncattach()
     179pppasyncattach(void)
    180180{
    181181    rtems_termios_linesw[PPPDISC] = pppdisc;
     
    279279 */
    280280static void
    281 pppasyncrelinq(sc)
    282     struct ppp_softc *sc;
     281pppasyncrelinq(struct ppp_softc *sc)
    283282{
    284283#ifdef XXX_XXX
     
    545544 */
    546545static void
    547 pppasyncctlp(sc)
    548     struct ppp_softc *sc;
     546pppasyncctlp(
     547    struct ppp_softc *sc)
    549548{
    550549  /* check to see if task id was set */
     
    657656 */
    658657static void
    659 ppp_timeout(x)
    660     void *x;
     658ppp_timeout(void *x)
    661659{
    662660    struct rtems_termios_tty *tty = (struct rtems_termios_tty *)x;
     
    674672#ifdef XXX_XXX
    675673static void
    676 pppgetm(sc)
    677     register struct ppp_softc *sc;
     674pppgetm(struct ppp_softc *sc)
    678675{
    679676    struct mbuf *m, **mp;
     
    915912
    916913static void
    917 ppplogchar(sc, c)
    918     struct ppp_softc *sc;
    919     int c;
     914ppplogchar(struct ppp_softc *sc, int c)
    920915{
    921916    if (c >= 0)
     
    930925
    931926static void
    932 pppdumpb(b, l)
    933     u_char *b;
    934     int l;
     927pppdumpb(u_char *b, int l)
    935928{
    936929    char buf[3*MAX_DUMP_BYTES+4];
  • cpukit/libnetworking/net/radix.c

    rfbf3f98 r42e10fa2  
    112112
    113113static struct radix_node *
    114 rn_search(v_arg, head)
    115         void *v_arg;
    116         struct radix_node *head;
     114rn_search(void *v_arg, struct radix_node *head)
    117115{
    118116        register struct radix_node *x;
     
    129127
    130128static struct radix_node *
    131 rn_search_m(v_arg, head, m_arg)
    132         struct radix_node *head;
    133         void *v_arg, *m_arg;
     129rn_search_m(void *v_arg, struct radix_node *head, void *m_arg)
    134130{
    135131        register struct radix_node *x;
     
    147143
    148144int
    149 rn_refines(m_arg, n_arg)
    150         void *m_arg, *n_arg;
     145rn_refines(void *m_arg, void *n_arg)
    151146{
    152147        register caddr_t m = m_arg, n = n_arg;
     
    174169
    175170struct radix_node *
    176 rn_lookup(v_arg, m_arg, head)
    177         void *v_arg, *m_arg;
    178         struct radix_node_head *head;
     171rn_lookup(void *v_arg, void *m_arg, struct radix_node_head *head)
    179172{
    180173        register struct radix_node *x;
     
    196189
    197190static int
    198 rn_satisfies_leaf(trial, leaf, skip)
    199         char *trial;
    200         register struct radix_node *leaf;
    201         int skip;
     191rn_satisfies_leaf(char *trial, struct radix_node *leaf, int skip)
    202192{
    203193        register char *cp = trial, *cp2 = leaf->rn_key, *cp3 = leaf->rn_mask;
     
    217207
    218208struct radix_node *
    219 rn_match(v_arg, head)
    220         void *v_arg;
    221         struct radix_node_head *head;
     209rn_match(void *v_arg, struct radix_node_head *head)
    222210{
    223211        caddr_t v = v_arg;
     
    329317
    330318static struct radix_node *
    331 rn_newpair(v, b, nodes)
    332         void *v;
    333         int b;
    334         struct radix_node nodes[2];
     319rn_newpair(void *v, int b, struct radix_node nodes[2])
    335320{
    336321        register struct radix_node *tt = nodes, *t = tt + 1;
     
    353338
    354339static struct radix_node *
    355 rn_insert(v_arg, head, dupentry, nodes)
    356         void *v_arg;
    357         struct radix_node_head *head;
    358         int *dupentry;
    359         struct radix_node nodes[2];
     340rn_insert(void *v_arg, struct radix_node_head *head, int *dupentry,
     341    struct radix_node nodes[2])
    360342{
    361343        caddr_t v = v_arg;
     
    423405
    424406struct radix_node *
    425 rn_addmask(n_arg, search, skip)
    426         int search, skip;
    427         void *n_arg;
     407rn_addmask(void *n_arg, int search, int skip)
    428408{
    429409        caddr_t netmask = (caddr_t)n_arg;
     
    496476
    497477static int      /* XXX: arbitrary ordering for non-contiguous masks */
    498 rn_lexobetter(m_arg, n_arg)
    499         void *m_arg, *n_arg;
     478rn_lexobetter(void *m_arg, void *n_arg)
    500479{
    501480        register u_char *mp = m_arg, *np = n_arg, *lim;
     
    511490
    512491static struct radix_mask *
    513 rn_new_radix_mask(tt, next)
    514         register struct radix_node *tt;
    515         register struct radix_mask *next;
     492rn_new_radix_mask(struct radix_node *tt, struct radix_mask *next)
    516493{
    517494        register struct radix_mask *m;
     
    535512
    536513struct radix_node *
    537 rn_addroute(v_arg, n_arg, head, treenodes)
    538         void *v_arg, *n_arg;
    539         struct radix_node_head *head;
    540         struct radix_node treenodes[2];
     514rn_addroute(void *v_arg, void *n_arg, struct radix_node_head *head,
     515     struct radix_node treenodes[2])
    541516{
    542517        caddr_t v = (caddr_t)v_arg, netmask = (caddr_t)n_arg;
     
    693668
    694669struct radix_node *
    695 rn_delete(v_arg, netmask_arg, head)
    696         void *v_arg, *netmask_arg;
    697         struct radix_node_head *head;
     670rn_delete(void *v_arg, void *netmask_arg, struct radix_node_head *head)
    698671{
    699672        register struct radix_node *t, *p, *x, *tt;
     
    882855 */
    883856static int
    884 rn_walktree_from(h, a, m, f, w)
    885         struct radix_node_head *h;
    886         void *a, *m;
    887         walktree_f_t *f;
    888         void *w;
     857rn_walktree_from(struct radix_node_head *h, void *a, void *m,
     858     walktree_f_t *f, void *w)
    889859{
    890860        int error;
     
    973943
    974944static int
    975 rn_walktree(h, f, w)
    976         struct radix_node_head *h;
    977         walktree_f_t *f;
    978         void *w;
     945rn_walktree(struct radix_node_head *h, walktree_f_t *f, void *w)
    979946{
    980947        int error;
     
    1014981
    1015982int
    1016 rn_inithead(head, off)
    1017         void **head;
    1018         int off;
     983rn_inithead(void **head, int off)
    1019984{
    1020985        register struct radix_node_head *rnh;
     
    10471012
    10481013void
    1049 rn_init()
     1014rn_init(void)
    10501015{
    10511016        char *cp, *cplim;
  • cpukit/libnetworking/net/raw_cb.c

    rfbf3f98 r42e10fa2  
    7474 */
    7575int
    76 raw_attach(so, proto)
    77         register struct socket *so;
    78         int proto;
     76raw_attach(struct socket *so, int proto)
    7977{
    8078        register struct rawcb *rp = sotorawcb(so);
     
    105103 */
    106104void
    107 raw_detach(rp)
    108         register struct rawcb *rp;
     105raw_detach(struct rawcb *rp)
    109106{
    110107        struct socket *so = rp->rcb_socket;
     
    128125 */
    129126void
    130 raw_disconnect(rp)
    131         struct rawcb *rp;
     127raw_disconnect(struct rawcb *rp)
    132128{
    133129
     
    141137#ifdef notdef
    142138int
    143 raw_bind(so, nam)
    144         register struct socket *so;
    145         struct mbuf *nam;
     139raw_bind(struct socket *so, struct mbuf *nam)
    146140{
    147141        struct sockaddr *addr = mtod(nam, struct sockaddr *);
  • cpukit/libnetworking/net/raw_usrreq.c

    rfbf3f98 r42e10fa2  
    5454 */
    5555void
    56 raw_init()
     56raw_init(void)
    5757{
    5858
     
    7070 */
    7171void
    72 raw_input(m0, proto, src, dst)
    73         struct mbuf *m0;
    74         register struct sockproto *proto;
    75         struct sockaddr *src, *dst;
     72raw_input(struct mbuf *m0, struct sockproto *proto, struct sockaddr *src,
     73    struct sockaddr *dst)
    7674{
    7775        register struct rawcb *rp;
     
    126124}
    127125
    128 /*ARGSUSED*/
    129126void
    130 raw_ctlinput(cmd, arg, dummy)
    131         int cmd;
    132         struct sockaddr *arg;
    133         void *dummy;
     127raw_ctlinput(int cmd, struct sockaddr *arg, void *dummy)
    134128{
    135129
     
    139133}
    140134
    141 /*ARGSUSED*/
    142135int
    143 raw_usrreq(so, req, m, nam, control)
    144         struct socket *so;
    145         int req;
    146         struct mbuf *m, *nam, *control;
     136raw_usrreq( struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
     137    struct mbuf *control)
    147138{
    148139        register struct rawcb *rp = sotorawcb(so);
  • cpukit/libnetworking/net/route.c

    rfbf3f98 r42e10fa2  
    217217
    218218void
    219 ifafree(ifa)
    220         register struct ifaddr *ifa;
     219ifafree(struct ifaddr *ifa)
    221220{
    222221        if (ifa == NULL)
     
    238237 */
    239238void
    240 rtredirect(struct sockaddr *dst,
    241         struct sockaddr *gateway,
    242         struct sockaddr *netmask,
    243         int flags,
    244         struct sockaddr *src,
    245         struct rtentry **rtp)
     239rtredirect(struct sockaddr *dst, struct sockaddr *gateway,
     240    struct sockaddr *netmask, int flags, struct sockaddr *src,
     241    struct rtentry **rtp)
    246242{
    247243        struct rtentry *rt;
     
    331327*/
    332328int
    333 rtioctl(req, data, p)
    334         int req;
    335         caddr_t data;
    336         struct proc *p;
     329rtioctl(int req, caddr_t data, struct proc *p)
    337330{
    338331#ifdef INET
     
    408401 */
    409402int
    410 rtrequest(int req,
    411         struct sockaddr *dst,
    412         struct sockaddr *gateway,
    413         struct sockaddr *netmask,
    414         int flags,
    415         struct rtentry **ret_nrt)
     403rtrequest(int req, struct sockaddr *dst, struct sockaddr *gateway,
     404    struct sockaddr *netmask, int flags, struct rtentry **ret_nrt)
    416405{
    417406        int s = splnet(); int error = 0;
     
    709698
    710699int
    711 rt_setgate(rt0, dst, gate)
    712         struct rtentry *rt0;
    713         struct sockaddr *dst, *gate;
     700rt_setgate(struct rtentry *rt0, struct sockaddr *dst, struct sockaddr *gate)
    714701{
    715702        caddr_t new, old;
     
    792779
    793780static void
    794 rt_maskedcopy(src, dst, netmask)
    795         struct sockaddr *src, *dst, *netmask;
     781rt_maskedcopy(struct sockaddr *src, struct sockaddr *dst,
     782    struct sockaddr *netmask)
    796783{
    797784        register u_char *cp1 = (u_char *)src;
     
    816803 */
    817804int
    818 rtinit(ifa, cmd, flags)
    819         register struct ifaddr *ifa;
    820         int cmd, flags;
     805rtinit(struct ifaddr *ifa, int cmd, int flags)
    821806{
    822807        register struct rtentry *rt;
  • cpukit/libnetworking/net/rtsock.c

    rfbf3f98 r42e10fa2  
    7878/*ARGSUSED*/
    7979static int
    80 route_usrreq(so, req, m, nam, control)
    81         struct socket *so;
    82         int req;
    83         struct mbuf *m, *nam, *control;
     80route_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
     81    struct mbuf *control)
    8482{
    8583        int error = 0;
  • cpukit/libnetworking/net/slcompress.c

    rfbf3f98 r42e10fa2  
    6565
    6666void
    67 sl_compress_init(comp, max_state)
    68         struct slcompress *comp;
    69         int max_state;
     67sl_compress_init(struct slcompress *comp, int max_state)
    7068{
    7169        register u_int i;
     
    157155 */
    158156u_int
    159 sl_compress_tcp(m, ip, comp, compress_cid)
    160         struct mbuf *m;
    161         register struct ip *ip;
    162         struct slcompress *comp;
    163         int compress_cid;
     157sl_compress_tcp(struct mbuf *m, struct ip *ip, struct slcompress *comp,
     158        int compress_cid)
    164159{
    165160        register struct cstate *cs = comp->last_cs->cs_next;
     
    417412
    418413int
    419 sl_uncompress_tcp(bufp, len, type, comp)
    420         u_char **bufp;
    421         int len;
    422         u_int type;
    423         struct slcompress *comp;
     414sl_uncompress_tcp(u_char **bufp, int len, u_int type, struct slcompress *comp)
    424415{
    425416        u_char *hdr, *cp;
     
    466457 */
    467458int
    468 sl_uncompress_tcp_core(buf, buflen, total_len, type, comp, hdrp, hlenp)
    469         u_char *buf;
    470         int buflen, total_len;
    471         u_int type;
    472         struct slcompress *comp;
    473         u_char **hdrp;
    474         u_int *hlenp;
     459sl_uncompress_tcp_core(u_char *buf, int buflen, int total_len,
     460        u_int type, struct slcompress *comp,
     461        u_char **hdrp, u_int *hlenp)
    475462{
    476463        register u_char *cp;
Note: See TracChangeset for help on using the changeset viewer.