diff options
Diffstat (limited to 'nss/passwd.c')
-rw-r--r-- | nss/passwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/passwd.c b/nss/passwd.c index 26327e5..2b0cddd 100644 --- a/nss/passwd.c +++ b/nss/passwd.c @@ -30,6 +30,9 @@ #include "common.h" #include "compat/attrs.h" +/* thread-local file pointer to an ongoing request */ +static __thread TFILE *pwentfp; + /* read a passwd entry from the stream */ static nss_status_t read_passwd( TFILE *fp,struct passwd *result, @@ -72,7 +75,7 @@ nss_status_t _nss_ldap_getpwuid_r( } /* thread-local file pointer to an ongoing request */ -static __thread TFILE *pwentfp; +/* static __thread TFILE *pwentfp; */ /* open a connection to read all passwd entries */ nss_status_t _nss_ldap_setpwent(int UNUSED(stayopen)) @@ -158,9 +161,6 @@ static nss_status_t _nss_nslcd_getpwuid_r( return retv; } -/* thread-local file pointer to an ongoing request */ -static __thread TFILE *pwentfp; - /* open a connection to the nslcd and write the request */ static nss_status_t _xnss_ldap_setpwent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { |