about summary refs log tree commit diff
path: root/sunrpc/svc.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-06-26 15:27:03 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-06-26 15:27:03 +0200
commit935d920e763626dbcbbf655117285d1d270791a1 (patch)
tree70d085e93baad80dc7036b27b30ca06dbad16e57 /sunrpc/svc.c
parent29055464a03c72762969a2e8734d0d05d4d70e58 (diff)
downloadglibc-935d920e763626dbcbbf655117285d1d270791a1.tar.gz
glibc-935d920e763626dbcbbf655117285d1d270791a1.tar.xz
glibc-935d920e763626dbcbbf655117285d1d270791a1.zip
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
Diffstat (limited to 'sunrpc/svc.c')
-rw-r--r--sunrpc/svc.c11
1 files changed, 0 insertions, 11 deletions
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 <time.h>
 #include <shlib-compat.h>
 
-#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_ */