summaryrefslogtreecommitdiffstats
path: root/cpukit/librpc/src/rpc/svc.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-11-21 04:45:39 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-11-21 04:45:39 +0000
commitddb56f497d21aa84cf3311ac665744243cd627a0 (patch)
tree014ac737c0c11e17c9012d08b49a20c831023166 /cpukit/librpc/src/rpc/svc.c
parent56c4caeca69e71a42370d1171428a9091bdb6e77 (diff)
downloadrtems-ddb56f497d21aa84cf3311ac665744243cd627a0.tar.bz2
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.
Diffstat (limited to 'cpukit/librpc/src/rpc/svc.c')
-rw-r--r--cpukit/librpc/src/rpc/svc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/librpc/src/rpc/svc.c b/cpukit/librpc/src/rpc/svc.c
index 751ca3185f..0d9aac82cf 100644
--- a/cpukit/librpc/src/rpc/svc.c
+++ b/cpukit/librpc/src/rpc/svc.c
@@ -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/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 NULL_SVC ((struct svc_callout *)0)
@@ -69,7 +69,7 @@ struct svc_callout {
u_long sc_vers;
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();