Changeset fbf3f98 in rtems


Ignore:
Timestamp:
Sep 1, 2008, 3:35:37 AM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
42e10fa2
Parents:
b873083
Message:

Stop using old-style function definitions.

Location:
cpukit/libnetworking/kern
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/kern/uipc_domain.c

    rb873083 rfbf3f98  
    8181/* ARGSUSED*/
    8282void
    83 domaininit(dummy)
    84         void *dummy;
     83domaininit(void *dummy)
    8584{
    8685        register struct domain *dp;
     
    126125 */
    127126static void
    128 kludge_splimp(udata)
    129         void *udata;
     127kludge_splimp(void *udata)
    130128{
    131129        int     *savesplp = udata;
     
    135133
    136134static void
    137 kludge_splx(udata)
    138         void *udata;
     135kludge_splx(void *udata)
    139136{
    140137        int     *savesplp = udata;
     
    187184
    188185void
    189 pfctlinput(cmd, sa)
    190         int cmd;
    191         struct sockaddr *sa;
     186pfctlinput(int cmd, struct sockaddr *sa)
    192187{
    193188        register struct domain *dp;
     
    201196
    202197static void
    203 pfslowtimo(arg)
    204         void *arg;
     198pfslowtimo(void *arg)
    205199{
    206200        register struct domain *dp;
     
    215209
    216210static void
    217 pffasttimo(arg)
    218         void *arg;
     211pffasttimo(void *arg)
    219212{
    220213        register struct domain *dp;
  • cpukit/libnetworking/kern/uipc_mbuf.c

    rb873083 rfbf3f98  
    4848
    4949#if !defined(__rtems__)
    50 static void mbinit __P((void *)) __attribute__ ((unused));
     50static void mbinit (void *) __attribute__ ((unused));
    5151SYSINIT(mbuf, SI_SUB_MBUF, SI_ORDER_FIRST, mbinit, NULL)
    5252#endif
     
    7272 */
    7373struct mbuf *
    74 m_retry(i, t)
    75         int i, t;
     74m_retry(int i, int t)
    7675{
    7776        register struct mbuf *m;
     
    9291 */
    9392struct mbuf *
    94 m_retryhdr(i, t)
    95         int i, t;
     93m_retryhdr(int i, int t)
    9694{
    9795        register struct mbuf *m;
     
    129127 */
    130128struct mbuf *
    131 m_get(nowait, type)
    132         int nowait, type;
     129m_get(int nowait, int type)
    133130{
    134131        register struct mbuf *m;
     
    139136
    140137struct mbuf *
    141 m_gethdr(nowait, type)
    142         int nowait, type;
     138m_gethdr(int nowait, int type)
    143139{
    144140        register struct mbuf *m;
     
    149145
    150146struct mbuf *
    151 m_getclr(nowait, type)
    152         int nowait, type;
     147m_getclr(int nowait, int type)
    153148{
    154149        register struct mbuf *m;
     
    694689 */
    695690int
    696 m_copyback(m0, off, len, cp)
    697         struct  mbuf *m0;
    698         register int off;
    699         register int len;
    700         caddr_t cp;
     691m_copyback(struct mbuf *m0, int off, int len, caddr_t cp)
    701692{
    702693        int mlen;
  • cpukit/libnetworking/kern/uipc_socket.c

    rb873083 rfbf3f98  
    6060/*ARGSUSED*/
    6161int
    62 socreate(dom, aso, type, proto, p)
    63         int dom;
    64         struct socket **aso;
    65         register int type;
    66         int proto;
    67         struct proc *p;
     62socreate(int dom, struct socket **aso, int type, int proto,
     63    struct proc *p)
    6864{
    6965        register struct protosw *prp;
     
    9894
    9995int
    100 sobind(so, nam)
    101         struct socket *so;
    102         struct mbuf *nam;
     96sobind(struct socket *so, struct mbuf *nam)
    10397{
    10498        int s = splnet();
     
    111105
    112106int
    113 solisten(so, backlog)
    114         register struct socket *so;
    115         int backlog;
     107solisten(struct socket *so, int backlog)
    116108{
    117109        int s = splnet(), error;
     
    132124
    133125void
    134 sofree(so)
    135         register struct socket *so;
     126sofree(struct socket *so)
    136127{
    137128        struct socket *head = so->so_head;
     
    163154 */
    164155int
    165 soclose(so)
    166         register struct socket *so;
     156soclose(struct socket *so)
    167157{
    168158        int s = splnet();               /* conservative */
     
    217207 */
    218208int
    219 soabort(so)
    220         struct socket *so;
     209soabort(struct socket *so)
    221210{
    222211
     
    225214
    226215int
    227 soaccept(so, nam)
    228         register struct socket *so;
    229         struct mbuf *nam;
     216soaccept(struct socket *so, struct mbuf *nam)
    230217{
    231218        int s = splnet();
     
    241228
    242229int
    243 soconnect(so, nam)
    244         register struct socket *so;
    245         struct mbuf *nam;
     230soconnect(struct socket *so, struct mbuf *nam)
    246231{
    247232        int s;
     
    268253
    269254int
    270 soconnect2(so1, so2)
    271         register struct socket *so1;
    272         struct socket *so2;
     255soconnect2(struct socket *so1,struct socket *so2)
    273256{
    274257        int s = splnet();
     
    281264
    282265int
    283 sodisconnect(so)
    284         register struct socket *so;
     266sodisconnect(struct socket *so)
    285267{
    286268        int s = splnet();
     
    320302 */
    321303int
    322 sosend(so, addr, uio, top, control, flags)
    323         register struct socket *so;
    324         struct mbuf *addr;
    325         struct uio *uio;
    326         struct mbuf *top;
    327         struct mbuf *control;
    328         int flags;
     304sosend(struct socket *so, struct mbuf *addr, struct uio *uio,
     305    struct mbuf *top, struct mbuf *control, int flags)
    329306{
    330307        struct mbuf **mp;
     
    513490 */
    514491int
    515 soreceive(so, paddr, uio, mp0, controlp, flagsp)
    516         register struct socket *so;
    517         struct mbuf **paddr;
    518         struct uio *uio;
    519         struct mbuf **mp0;
    520         struct mbuf **controlp;
    521         int *flagsp;
     492soreceive(struct socket *so, struct mbuf **paddr, struct uio *uio,
     493    struct mbuf **mp0, struct mbuf **controlp, int *flagsp)
    522494{
    523495        register struct mbuf *m, **mp;
     
    810782
    811783int
    812 soshutdown(so, how)
    813         register struct socket *so;
    814         register int how;
     784soshutdown(struct socket *so, int how )
    815785{
    816786        register struct protosw *pr = so->so_proto;
     
    825795
    826796void
    827 sorflush(so)
    828         register struct socket *so;
     797sorflush(struct socket *so)
    829798{
    830799        register struct sockbuf *sb = &so->so_rcv;
     
    847816
    848817int
    849 sosetopt(so, level, optname, m0)
    850         register struct socket *so;
    851         int level, optname;
    852         struct mbuf *m0;
     818sosetopt(struct socket *so, int level, int optname, struct mbuf *m0)
    853819{
    854820        int error = 0;
     
    1021987
    1022988int
    1023 sogetopt(so, level, optname, mp)
    1024         register struct socket *so;
    1025         int level, optname;
    1026         struct mbuf **mp;
     989sogetopt(struct socket *so, int level, int optname, struct mbuf **mp)
    1027990{
    1028991        register struct mbuf *m;
     
    11281091
    11291092void
    1130 sohasoutofband(so)
    1131         register struct socket *so;
     1093sohasoutofband(struct socket *so)
    11321094{
    11331095#if 0   /* FIXME: For now we just ignore out of band data */
  • cpukit/libnetworking/kern/uipc_socket2.c

    rb873083 rfbf3f98  
    106106
    107107void
    108 soisconnecting(so)
    109         register struct socket *so;
     108soisconnecting(struct socket *so)
    110109{
    111110
     
    115114
    116115void
    117 soisconnected(so)
    118         register struct socket *so;
     116soisconnected(struct socket *so)
    119117{
    120118        register struct socket *head = so->so_head;
     
    138136
    139137void
    140 soisdisconnecting(so)
    141         register struct socket *so;
     138soisdisconnecting(struct socket *so)
    142139{
    143140
     
    150147
    151148void
    152 soisdisconnected(so)
    153         register struct socket *so;
     149soisdisconnected(struct socket *so)
    154150{
    155151
     
    172168 */
    173169struct socket *
    174 sodropablereq(head)
    175         register struct socket *head;
     170sodropablereq(struct socket *head)
    176171{
    177172        register struct socket *so;
     
    216211 */
    217212struct socket *
    218 sonewconn1(head, connstatus)
    219         register struct socket *head;
    220         int connstatus;
     213sonewconn1(struct socket *head, int connstatus)
    221214{
    222215        register struct socket *so;
     
    277270
    278271void
    279 socantsendmore(so)
    280         struct socket *so;
     272socantsendmore(struct socket *so)
    281273{
    282274
     
    286278
    287279void
    288 socantrcvmore(so)
    289         struct socket *so;
     280socantrcvmore(struct socket *so)
    290281{
    291282
     
    327318
    328319int
    329 soreserve(so, sndcc, rcvcc)
    330         register struct socket *so;
    331         u_long sndcc, rcvcc;
     320soreserve(struct socket *so, u_long sndcc, u_long rcvcc)
    332321{
    333322
     
    355344 */
    356345int
    357 sbreserve(sb, cc)
    358         struct sockbuf *sb;
    359         u_long cc;
     346sbreserve(struct sockbuf *sb, u_long cc)
    360347{
    361348
     
    373360 */
    374361void
    375 sbrelease(sb)
    376         struct sockbuf *sb;
     362sbrelease(struct sockbuf *sb)
    377363{
    378364
     
    413399 */
    414400void
    415 sbappend(sb, m)
    416         struct sockbuf *sb;
    417         struct mbuf *m;
     401sbappend(struct sockbuf *sb, struct mbuf *m)
    418402{
    419403        register struct mbuf *n;
     
    437421#ifdef SOCKBUF_DEBUG
    438422void
    439 sbcheck(sb)
    440         register struct sockbuf *sb;
     423sbcheck(struct sockbuf *sb)
    441424{
    442425        register struct mbuf *m;
     
    464447 */
    465448void
    466 sbappendrecord(sb, m0)
    467         register struct sockbuf *sb;
    468         register struct mbuf *m0;
     449sbappendrecord(struct sockbuf *sb, struct mbuf *m0)
    469450{
    470451        register struct mbuf *m;
     
    500481 */
    501482void
    502 sbinsertoob(sb, m0)
    503         register struct sockbuf *sb;
    504         register struct mbuf *m0;
     483sbinsertoob(struct sockbuf *sb, struct mbuf *m0)
    505484{
    506485        register struct mbuf *m;
     
    547526 */
    548527int
    549 sbappendaddr(sb, asa, m0, control)
    550         register struct sockbuf *sb;
    551         struct sockaddr *asa;
    552         struct mbuf *m0, *control;
     528sbappendaddr(struct sockbuf *sb, struct sockaddr *asa,
     529    struct mbuf *m0, struct mbuf *control)
    553530{
    554531        register struct mbuf *m, *n;
     
    591568
    592569int
    593 sbappendcontrol(sb, m0, control)
    594         struct sockbuf *sb;
    595         struct mbuf *control, *m0;
     570sbappendcontrol(struct sockbuf *sb, struct mbuf *m0,
     571    struct mbuf *control)
    596572{
    597573        register struct mbuf *m, *n;
     
    629605 */
    630606void
    631 sbcompress(sb, m, n)
    632         register struct sockbuf *sb;
    633         register struct mbuf *m, *n;
     607sbcompress(struct sockbuf *sb, struct mbuf *m, struct mbuf *n)
    634608{
    635609        register int eor = 0;
     
    678652 */
    679653void
    680 sbflush(sb)
    681         register struct sockbuf *sb;
     654sbflush(struct sockbuf *sb)
    682655{
    683656
     
    694667 */
    695668void
    696 sbdrop(sb, len)
    697         register struct sockbuf *sb;
    698         register int len;
     669sbdrop(struct sockbuf *sb, int len)
    699670{
    700671        register struct mbuf *m, *mn;
     
    738709 */
    739710void
    740 sbdroprecord(sb)
    741         register struct sockbuf *sb;
     711sbdroprecord(struct sockbuf *sb)
    742712{
    743713        register struct mbuf *m, *mn;
     
    759729 */
    760730struct mbuf *
    761 sbcreatecontrol(p, size, type, level)
    762         caddr_t p;
    763         register int size;
    764         int type, level;
     731sbcreatecontrol(caddr_t p, int size, int type, int level)
    765732{
    766733        register struct cmsghdr *cp;
Note: See TracChangeset for help on using the changeset viewer.