diff options
Diffstat (limited to 'nss/protocols.c')
-rw-r--r-- | nss/protocols.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/protocols.c b/nss/protocols.c index 5a89075..b490fc3 100644 --- a/nss/protocols.c +++ b/nss/protocols.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 single protocol entry from the stream */ static nss_status_t read_protoent( TFILE *fp,struct protoent *result, @@ -71,7 +68,7 @@ nss_status_t _nss_ldap_getprotobynumber_r( } /* thread-local file pointer to an ongoing request */ -/* static __thread TFILE *protoentfp; */ +static __thread TFILE *protoentfp; /* start a request to read all protocol entries */ nss_status_t _nss_ldap_setprotoent(int UNUSED(stayopen)) @@ -206,6 +203,9 @@ static nss_status_t _xnss_ldap_getprotobynumber_r(nss_backend_t UNUSED(*be),void return status; } +/* thread-local file pointer to an ongoing request */ +static __thread TFILE *protoentfp; + static nss_status_t _xnss_ldap_setprotoent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { NSS_SETENT(protoentfp); |