Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/passwd.c
diff options
context:
space:
mode:
authorTed Cheng <tedcheng@symas.com>2010-10-09 19:26:31 +0200
committerTed Cheng <tedcheng@symas.com>2010-10-09 19:26:31 +0200
commitbdbeab5693d7c28df3174d5352d5a3ff78b22d92 (patch)
tree68ac871057e64b3a1e494e8ec1bedd0d82a0a843 /nss/passwd.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/passwd.c')
-rw-r--r--nss/passwd.c8
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))
{