From ddb56f497d21aa84cf3311ac665744243cd627a0 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 21 Nov 2004 04:45:39 +0000 Subject: 2004-11-21 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. --- cpukit/librpc/src/rpc/svc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/librpc/src/rpc/svc.c') 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 #include -#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(); -- cgit v1.2.3