Changeset ddb56f4 in rtems for cpukit/librpc


Ignore:
Timestamp:
Nov 21, 2004, 4:45:39 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
5220ae2
Parents:
56c4cae
Message:

2004-11-21 Ralf Corsepius <ralf.corsepius@…>

  • librpc/include/rpc/rpc.h (struct _rtems_rpc_task_variables): Use pointers to types instead of void* to avoid casts.
  • librpc/src/rpc/clnt_perror.c, librpc/src/rpc/clnt_raw.c, librpc/src/rpc/clnt_simple.c, librpc/src/rpc/rpcdname.c, librpc/src/rpc/svc.c, librpc/src/rpc/svc_auth.c, librpc/src/rpc/svc_simple.c: Eliminate lvalue casts gcc-3.4 warns about.
Location:
cpukit/librpc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/include/rpc/rpc.h

    r56c4cae rddb56f4  
    104104        int             svc_svc_maxfd;
    105105        fd_set          svc_svc_fdset;
    106         void            *svc_xports;
     106        SVCXPRT **      svc_xports;
    107107        int             svc_xportssize;
    108108        int             svc__svc_fdsetsize;
    109         void            *svc__svc_fdset;
    110         void            *svc_svc_head;
     109        fd_set          *svc__svc_fdset;
     110        struct svc_callout      *svc_svc_head;
    111111
    112         void            *clnt_perror_buf;
     112        char            *clnt_perror_buf;
    113113
    114         void            *clnt_raw_private;
     114        struct clnt_raw_private *clnt_raw_private;
    115115
    116116        void            *call_rpc_private;
    117117
    118         void            *svc_raw_private;
     118        struct call_rpc_private *svc_raw_private;
    119119
    120         void            *svc_simple_proglst;
    121         void            *svc_simple_pl;
    122         void            *svc_simple_transp;
     120        struct prog_lst *svc_simple_proglst;
     121        struct prog_lst *svc_simple_pl;
     122        SVCXPRT         *svc_simple_transp;
    123123
    124         void            *rpcdname_default_domain;
     124        char            *rpcdname_default_domain;
    125125
    126         void            *svc_auths_Auths;
     126        struct authsvc *svc_auths_Auths;
    127127};
    128128extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
    129129
    130130#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
    131 #define svc_fdset ((rtems_rpc_task_variables)->svc_svc_fdset)
     131#define svc_fdset (rtems_rpc_task_variables->svc_svc_fdset)
    132132#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
    133 #define __svc_fdset (fd_set *)(rtems_rpc_task_variables->svc__svc_fdset)
     133#define __svc_fdset (rtems_rpc_task_variables->svc__svc_fdset)
    134134
    135135#endif /* _RTEMS_RPC_INTERNAL_ */
  • cpukit/librpc/src/rpc/clnt_perror.c

    r56c4cae rddb56f4  
    5151#define CLNT_PERROR_BUFLEN 256
    5252
    53 #define buf ((char  *)(rtems_rpc_task_variables)->clnt_perror_buf)
     53#define buf (rtems_rpc_task_variables->clnt_perror_buf)
    5454
    5555static char *
  • cpukit/librpc/src/rpc/clnt_raw.c

    r56c4cae rddb56f4  
    6161        u_int   mcnt;
    6262};
    63 #define clntraw_private ((struct clnt_raw_private *) (rtems_rpc_task_variables)->clnt_raw_private)
     63#define clntraw_private (rtems_rpc_task_variables->clnt_raw_private)
    6464
    6565static enum clnt_stat   clntraw_call();
  • cpukit/librpc/src/rpc/clnt_simple.c

    r56c4cae rddb56f4  
    5656        char    *oldhost;
    5757};
    58 #define callrpc_private ((struct call_rpc_private *)(rtems_rpc_task_variables)->call_rpc_private)
     58#define callrpc_private (rtems_rpc_task_variables->call_rpc_private)
    5959
    6060int
  • cpukit/librpc/src/rpc/rpcdname.c

    r56c4cae rddb56f4  
    4444int getdomainname(char *, size_t);
    4545
    46 #define default_domain ((char *)(rtems_rpc_task_variables)->rpcdname_default_domain)
     46#define default_domain (rtems_rpc_task_variables->rpcdname_default_domain)
    4747
    4848static char *
  • cpukit/librpc/src/rpc/svc.c

    r56c4cae rddb56f4  
    5050#include <rpc/pmap_clnt.h>
    5151
    52 #define xports ((SVCXPRT **) rtems_rpc_task_variables->svc_xports)
     52#define xports (rtems_rpc_task_variables->svc_xports)
    5353#define xportssize (rtems_rpc_task_variables->svc_xportssize)
    5454
     
    7070        void                (*sc_dispatch)();
    7171};
    72 #define svc_head (struct svc_callout *)((rtems_rpc_task_variables)->svc_svc_head)
     72#define svc_head (rtems_rpc_task_variables->svc_svc_head)
    7373
    7474static struct svc_callout *svc_find();
  • cpukit/librpc/src/rpc/svc_auth.c

    r56c4cae rddb56f4  
    8888        struct  authsvc   *next;
    8989};
    90 #define Auths ((struct authsvc *)(rtems_rpc_task_variables)->svc_auths_Auths)
     90#define Auths (rtems_rpc_task_variables->svc_auths_Auths)
    9191
    9292/*
  • cpukit/librpc/src/rpc/svc_simple.c

    r56c4cae rddb56f4  
    5757};
    5858static void universal();
    59 #define proglst ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_proglst)
    60 #define pl ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_pl)
    61 #define transp ((SVCXPRT *)(rtems_rpc_task_variables)->svc_simple_transp)
     59#define proglst (rtems_rpc_task_variables->svc_simple_proglst)
     60#define pl (rtems_rpc_task_variables->svc_simple_pl)
     61#define transp (rtems_rpc_task_variables->svc_simple_transp)
    6262
    6363int
Note: See TracChangeset for help on using the changeset viewer.