diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-09 20:10:27 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-09 20:10:27 +0000 |
commit | a7ac27ed9e31c8b6bfca11b73816d62528cef286 (patch) | |
tree | 1d66a314dd9d46a83e6ccb74b86e8438dfd1f167 /nss/rpc.c | |
parent | b978f0588a933c8a554b7a2a3f7416645d3da758 (diff) |
have one shared file handle per flavour instead of one global one (for now) and re-introduce some other minor changes that got lost in r1247
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1249 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/rpc.c')
-rw-r--r-- | nss/rpc.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |