summaryrefslogtreecommitdiff
path: root/nss/protocols.c
diff options
context:
space:
mode:
authorTed Cheng <tedcheng@symas.com>2010-10-09 17:26:31 +0000
committerTed Cheng <tedcheng@symas.com>2010-10-09 17:26:31 +0000
commitbdbeab5693d7c28df3174d5352d5a3ff78b22d92 (patch)
tree68ac871057e64b3a1e494e8ec1bedd0d82a0a843 /nss/protocols.c
parent611dc583a05914f81c97c165163bcce021b0dfac (diff)
nss-pam-ldapd fixes for solaris 10 build
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1247 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/protocols.c')
-rw-r--r--nss/protocols.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/protocols.c b/nss/protocols.c
index b490fc3..5a89075 100644
--- a/nss/protocols.c
+++ b/nss/protocols.c
@@ -30,6 +30,9 @@
#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,
@@ -68,7 +71,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))
@@ -203,9 +206,6 @@ 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);