Changeset ddb56f4 in rtems for cpukit/librpc/src


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/src/rpc
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • 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.