aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/clnt_simp.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/clnt_simp.c
parent29055464a03c72762969a2e8734d0d05d4d70e58 (diff)
downloadglibc-935d920e763626dbcbbf655117285d1d270791a1.tar
glibc-935d920e763626dbcbbf655117285d1d270791a1.tar.gz
glibc-935d920e763626dbcbbf655117285d1d270791a1.tar.bz2
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/clnt_simp.c')
-rw-r--r--sunrpc/clnt_simp.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sunrpc/clnt_simp.c b/sunrpc/clnt_simp.c
index bdf6322fc4..fab61d2170 100644
--- a/sunrpc/clnt_simp.c
+++ b/sunrpc/clnt_simp.c
@@ -49,11 +49,7 @@ struct callrpc_private_s
u_long oldprognum, oldversnum, valid;
char *oldhost;
};
-#ifdef _RPC_THREAD_SAFE_
#define callrpc_private RPC_THREAD_VARIABLE(callrpc_private_s)
-#else
-static struct callrpc_private_s *callrpc_private;
-#endif
int
callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum,
@@ -123,7 +119,6 @@ callrpc (const char *host, u_long prognum, u_long versnum, u_long procnum,
}
libc_hidden_nolink_sunrpc (callrpc, GLIBC_2_0)
-#ifdef _RPC_THREAD_SAFE_
void
__rpc_thread_clnt_cleanup (void)
{
@@ -135,4 +130,3 @@ __rpc_thread_clnt_cleanup (void)
free (rcp);
}
}
-#endif /* _RPC_THREAD_SAFE_ */