Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/rpc.c')
-rw-r--r--nss/rpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/rpc.c b/nss/rpc.c
index 8bc0f7f..f9ceab9 100644
--- a/nss/rpc.c
+++ b/nss/rpc.c
@@ -30,9 +30,6 @@
#include "common.h"
#include "compat/attrs.h"
-/* thread-local file pointer to an ongoing request */
-static __thread TFILE *protoentfp;
-
/* read a sinlge rpc entry from the stream */
static nss_status_t read_rpcent(
TFILE *fp,struct rpcent *result,
@@ -71,7 +68,7 @@ nss_status_t _nss_ldap_getrpcbynumber_r(
}
/* thread-local file pointer to an ongoing request */
-/* static __thread TFILE *protoentfp; */
+static __thread TFILE *protoentfp;
/* request a stream to list all rpc entries */
nss_status_t _nss_ldap_setrpcent(int UNUSED(stayopen))
@@ -119,6 +116,9 @@ static nss_status_t _nss_nslcd_getrpcbynumber_r(
return retv;
}
+/* thread-local file pointer to an ongoing request */
+static __thread TFILE *protoentfp;
+
static nss_status_t _xnss_ldap_setrpcent(nss_backend_t UNUSED(*be),void UNUSED(*args))
{
NSS_SETENT(protoentfp);