forked from Imagelibrary/rtems
2004-11-21 Ralf Corsepius <ralf.corsepius@rtems.org>
* 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.
This commit is contained in:
@@ -1,3 +1,13 @@
|
|||||||
|
2004-11-21 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2004-11-20 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libfs/src/dosfs/dosfs.h: Add doxygen preamble.
|
* libfs/src/dosfs/dosfs.h: Add doxygen preamble.
|
||||||
|
|||||||
@@ -103,34 +103,34 @@ int rtems_rpc_start_portmapper (int priority);
|
|||||||
struct _rtems_rpc_task_variables {
|
struct _rtems_rpc_task_variables {
|
||||||
int svc_svc_maxfd;
|
int svc_svc_maxfd;
|
||||||
fd_set svc_svc_fdset;
|
fd_set svc_svc_fdset;
|
||||||
void *svc_xports;
|
SVCXPRT ** svc_xports;
|
||||||
int svc_xportssize;
|
int svc_xportssize;
|
||||||
int svc__svc_fdsetsize;
|
int svc__svc_fdsetsize;
|
||||||
void *svc__svc_fdset;
|
fd_set *svc__svc_fdset;
|
||||||
void *svc_svc_head;
|
struct svc_callout *svc_svc_head;
|
||||||
|
|
||||||
void *clnt_perror_buf;
|
char *clnt_perror_buf;
|
||||||
|
|
||||||
void *clnt_raw_private;
|
struct clnt_raw_private *clnt_raw_private;
|
||||||
|
|
||||||
void *call_rpc_private;
|
void *call_rpc_private;
|
||||||
|
|
||||||
void *svc_raw_private;
|
struct call_rpc_private *svc_raw_private;
|
||||||
|
|
||||||
void *svc_simple_proglst;
|
struct prog_lst *svc_simple_proglst;
|
||||||
void *svc_simple_pl;
|
struct prog_lst *svc_simple_pl;
|
||||||
void *svc_simple_transp;
|
SVCXPRT *svc_simple_transp;
|
||||||
|
|
||||||
void *rpcdname_default_domain;
|
char *rpcdname_default_domain;
|
||||||
|
|
||||||
void *svc_auths_Auths;
|
struct authsvc *svc_auths_Auths;
|
||||||
};
|
};
|
||||||
extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
|
extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
|
||||||
|
|
||||||
#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
|
#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
|
||||||
#define svc_fdset ((rtems_rpc_task_variables)->svc_svc_fdset)
|
#define svc_fdset (rtems_rpc_task_variables->svc_svc_fdset)
|
||||||
#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
|
#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
|
||||||
#define __svc_fdset (fd_set *)(rtems_rpc_task_variables->svc__svc_fdset)
|
#define __svc_fdset (rtems_rpc_task_variables->svc__svc_fdset)
|
||||||
|
|
||||||
#endif /* _RTEMS_RPC_INTERNAL_ */
|
#endif /* _RTEMS_RPC_INTERNAL_ */
|
||||||
|
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/clnt_perror.c,v 1.11 1999/08/28
|
|||||||
static char *auth_errmsg();
|
static char *auth_errmsg();
|
||||||
#define CLNT_PERROR_BUFLEN 256
|
#define CLNT_PERROR_BUFLEN 256
|
||||||
|
|
||||||
#define buf ((char *)(rtems_rpc_task_variables)->clnt_perror_buf)
|
#define buf (rtems_rpc_task_variables->clnt_perror_buf)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
_buf()
|
_buf()
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ struct clnt_raw_private {
|
|||||||
char mashl_callmsg[MCALL_MSG_SIZE];
|
char mashl_callmsg[MCALL_MSG_SIZE];
|
||||||
u_int mcnt;
|
u_int mcnt;
|
||||||
};
|
};
|
||||||
#define clntraw_private ((struct clnt_raw_private *) (rtems_rpc_task_variables)->clnt_raw_private)
|
#define clntraw_private (rtems_rpc_task_variables->clnt_raw_private)
|
||||||
|
|
||||||
static enum clnt_stat clntraw_call();
|
static enum clnt_stat clntraw_call();
|
||||||
static void clntraw_abort();
|
static void clntraw_abort();
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ struct call_rpc_private {
|
|||||||
int oldprognum, oldversnum, valid;
|
int oldprognum, oldversnum, valid;
|
||||||
char *oldhost;
|
char *oldhost;
|
||||||
};
|
};
|
||||||
#define callrpc_private ((struct call_rpc_private *)(rtems_rpc_task_variables)->call_rpc_private)
|
#define callrpc_private (rtems_rpc_task_variables->call_rpc_private)
|
||||||
|
|
||||||
int
|
int
|
||||||
callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
|
callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ static char sccsid[] = "@(#)rpcdname.c 1.7 91/03/11 Copyr 1989 Sun Micro";
|
|||||||
|
|
||||||
int getdomainname(char *, size_t);
|
int getdomainname(char *, size_t);
|
||||||
|
|
||||||
#define default_domain ((char *)(rtems_rpc_task_variables)->rpcdname_default_domain)
|
#define default_domain (rtems_rpc_task_variables->rpcdname_default_domain)
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
get_default_domain()
|
get_default_domain()
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/svc.c,v 1.14 1999/08/28 00:00:4
|
|||||||
#include <rpc/rpc.h>
|
#include <rpc/rpc.h>
|
||||||
#include <rpc/pmap_clnt.h>
|
#include <rpc/pmap_clnt.h>
|
||||||
|
|
||||||
#define xports ((SVCXPRT **) rtems_rpc_task_variables->svc_xports)
|
#define xports (rtems_rpc_task_variables->svc_xports)
|
||||||
#define xportssize (rtems_rpc_task_variables->svc_xportssize)
|
#define xportssize (rtems_rpc_task_variables->svc_xportssize)
|
||||||
|
|
||||||
#define NULL_SVC ((struct svc_callout *)0)
|
#define NULL_SVC ((struct svc_callout *)0)
|
||||||
@@ -69,7 +69,7 @@ struct svc_callout {
|
|||||||
u_long sc_vers;
|
u_long sc_vers;
|
||||||
void (*sc_dispatch)();
|
void (*sc_dispatch)();
|
||||||
};
|
};
|
||||||
#define svc_head (struct svc_callout *)((rtems_rpc_task_variables)->svc_svc_head)
|
#define svc_head (rtems_rpc_task_variables->svc_svc_head)
|
||||||
|
|
||||||
static struct svc_callout *svc_find();
|
static struct svc_callout *svc_find();
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ struct authsvc {
|
|||||||
enum auth_stat (*handler)();
|
enum auth_stat (*handler)();
|
||||||
struct authsvc *next;
|
struct authsvc *next;
|
||||||
};
|
};
|
||||||
#define Auths ((struct authsvc *)(rtems_rpc_task_variables)->svc_auths_Auths)
|
#define Auths (rtems_rpc_task_variables->svc_auths_Auths)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The call rpc message, msg has been obtained from the wire. The msg contains
|
* The call rpc message, msg has been obtained from the wire. The msg contains
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ struct prog_lst {
|
|||||||
struct prog_lst *p_nxt;
|
struct prog_lst *p_nxt;
|
||||||
};
|
};
|
||||||
static void universal();
|
static void universal();
|
||||||
#define proglst ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_proglst)
|
#define proglst (rtems_rpc_task_variables->svc_simple_proglst)
|
||||||
#define pl ((struct prog_lst *)(rtems_rpc_task_variables)->svc_simple_pl)
|
#define pl (rtems_rpc_task_variables->svc_simple_pl)
|
||||||
#define transp ((SVCXPRT *)(rtems_rpc_task_variables)->svc_simple_transp)
|
#define transp (rtems_rpc_task_variables->svc_simple_transp)
|
||||||
|
|
||||||
int
|
int
|
||||||
registerrpc(prognum, versnum, procnum, progname, inproc, outproc)
|
registerrpc(prognum, versnum, procnum, progname, inproc, outproc)
|
||||||
|
|||||||
Reference in New Issue
Block a user