diff options
author | Ted Cheng <tedcheng@symas.com> | 2010-10-09 19:26:31 +0200 |
---|---|---|
committer | Ted Cheng <tedcheng@symas.com> | 2010-10-09 19:26:31 +0200 |
commit | bdbeab5693d7c28df3174d5352d5a3ff78b22d92 (patch) | |
tree | 68ac871057e64b3a1e494e8ec1bedd0d82a0a843 /nss/ethers.c | |
parent | 611dc583a05914f81c97c165163bcce021b0dfac (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/ethers.c')
-rw-r--r-- | nss/ethers.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/nss/ethers.c b/nss/ethers.c index bc70e81..5c1b758 100644 --- a/nss/ethers.c +++ b/nss/ethers.c @@ -42,6 +42,8 @@ static nss_status_t read_etherent( return NSS_STATUS_SUCCESS; } +static __thread TFILE *etherentfp; + #ifdef NSS_FLAVOUR_GLIBC /* map a hostname to the corresponding ethernet address */ @@ -67,7 +69,7 @@ nss_status_t _nss_ldap_getntohost_r( } /* thread-local file pointer to an ongoing request */ -static __thread TFILE *etherentfp; +/* static __thread TFILE *etherentfp; */ /* open a connection to read all ether entries */ nss_status_t _nss_ldap_setetherent(int UNUSED(stayopen)) @@ -97,7 +99,7 @@ nss_status_t _nss_ldap_endetherent(void) #ifndef NSS_BUFLEN_ETHERS #define NSS_BUFLEN_ETHERS 1024 -#endif +#endif /* NSS_BUFLEN_ETHERS */ #define errnop &errno @@ -159,9 +161,6 @@ static nss_status_t _xnss_ldap_getntohost_r(nss_backend_t UNUSED(*be),void *args return retv; } -/* thread-local file pointer to an ongoing request */ -static __thread TFILE *etherentfp; - static nss_status_t _xnss_ldap_setetherent(nss_backend_t UNUSED(*be),void UNUSED(*args)) { NSS_SETENT(etherentfp); @@ -169,7 +168,7 @@ static nss_status_t _xnss_ldap_setetherent(nss_backend_t UNUSED(*be),void UNUSED static nss_status_t _xnss_ldap_getetherent_r(nss_backend_t UNUSED(*be),void *args) { - /* TODO: cns3 uses struct ether,verify */ + /* TODO: padl uses struct ether,verify */ struct etherent result; char *buffer=NSS_ARGS(args)->buf.buffer; size_t buflen=NSS_ARGS(args)->buf.buflen; |