From 935d920e763626dbcbbf655117285d1d270791a1 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 26 Jun 2018 15:27:03 +0200 Subject: sunrpc: Remove always-defined _RPC_THREAD_SAFE_ macro Header and C source file changes were generated using: unifdef -m -D_RPC_THREAD_SAFE_ include/rpc/rpc.h sunrpc/*.c --- sunrpc/svc.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sunrpc/svc.c') diff --git a/sunrpc/svc.c b/sunrpc/svc.c index 87baf6ac68..90e84e2cd2 100644 --- a/sunrpc/svc.c +++ b/sunrpc/svc.c @@ -61,11 +61,7 @@ #include #include -#ifdef _RPC_THREAD_SAFE_ #define xports RPC_THREAD_VARIABLE(svc_xports_s) -#else -static SVCXPRT **xports; -#endif #define NULL_SVC ((struct svc_callout *)0) #define RQCRED_SIZE 400 /* this size is excessive */ @@ -81,11 +77,7 @@ struct svc_callout { void (*sc_dispatch) (struct svc_req *, SVCXPRT *); bool_t sc_mapped; }; -#ifdef _RPC_THREAD_SAFE_ #define svc_head RPC_THREAD_VARIABLE(svc_head_s) -#else -static struct svc_callout *svc_head; -#endif /* *************** SVCXPRT related stuff **************** */ @@ -568,7 +560,6 @@ __svc_accept_failed (void) } } -#ifdef _RPC_THREAD_SAFE_ void __rpc_thread_svc_cleanup (void) @@ -578,5 +569,3 @@ __rpc_thread_svc_cleanup (void) while ((svcp = svc_head) != NULL) svc_unregister (svcp->sc_prog, svcp->sc_vers); } - -#endif /* _RPC_THREAD_SAFE_ */ -- cgit v1.2.1