From 1bc1a2b9076b8383ed82dbe1996b738515544246 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 9 Feb 2004 10:47:53 +0000 Subject: * include/rpc/rpc.h: Declare thread variables with their correct type. * sunrpc/clnt_perr.c: Don't cast thread variables. * sunrpc/clnt_raw.c: Likewise. * sunrpc/clnt_simp.c: Likewise. * sunrpc/key_call.c: Likewise. * sunrpc/svcauth_des.c: Likewise. * sunrpc/svc.c: Likewise. * sunrpc/svc_raw.c: Likewise. * sunrpc/svc_simple.c: Likewise. 2004-02-09 Andreas Schwab * include/rpc/rpc.h: Declare thread variables with their correct type. * sunrpc/clnt_perr.c: Don't cast thread variables. * sunrpc/clnt_raw.c: Likewise. * sunrpc/clnt_simp.c: Likewise. * sunrpc/key_call.c: Likewise. * sunrpc/svcauth_des.c: Likewise. * sunrpc/svc.c: Likewise. * sunrpc/svc_raw.c: Likewise. * sunrpc/svc_simple.c: Likewise. --- sunrpc/svc_simple.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sunrpc/svc_simple.c') diff --git a/sunrpc/svc_simple.c b/sunrpc/svc_simple.c index b30e4cff4d..57bedba163 100644 --- a/sunrpc/svc_simple.c +++ b/sunrpc/svc_simple.c @@ -61,7 +61,7 @@ struct proglst_ struct proglst_ *p_nxt; }; #ifdef _RPC_THREAD_SAFE_ -#define proglst ((struct proglst_ *)RPC_THREAD_VARIABLE(svcsimple_proglst_s)) +#define proglst RPC_THREAD_VARIABLE(svcsimple_proglst_s) #else static struct proglst_ *proglst; #endif @@ -69,7 +69,7 @@ static struct proglst_ *proglst; static void universal (struct svc_req *rqstp, SVCXPRT *transp_s); #ifdef _RPC_THREAD_SAFE_ -#define transp ((SVCXPRT *)RPC_THREAD_VARIABLE(svcsimple_transp_s)) +#define transp RPC_THREAD_VARIABLE(svcsimple_transp_s) #else static SVCXPRT *transp; #endif -- cgit v1.2.3