diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-08 11:24:38 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-08 11:24:38 +0000 |
commit | 9d59578d158786f7b3348421081e4e64f87325db (patch) | |
tree | 7318e3dc66565b3c17c9d224bd01ea3ddd22b8e5 /nss | |
parent | 24fae4c5df0c5152891893ab677edb4a9b497d11 (diff) |
correctly name shared file handle
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1245 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss')
-rw-r--r-- | nss/services.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/nss/services.c b/nss/services.c index 39260c6..b45185a 100644 --- a/nss/services.c +++ b/nss/services.c @@ -54,7 +54,6 @@ nss_status_t _nss_ldap_getservbyname_r( NSS_BYGEN(NSLCD_ACTION_SERVICE_BYNAME, WRITE_STRING(fp,name);WRITE_STRING(fp,protocol), read_servent(fp,result,buffer,buflen,errnop)); - } /* get a service entry by port and protocol */ @@ -68,12 +67,12 @@ nss_status_t _nss_ldap_getservbyport_r( } /* thread-local file pointer to an ongoing request */ -static __thread TFILE *protoentfp; +static __thread TFILE *serventfp; /* open request to get all services */ nss_status_t _nss_ldap_setservent(int UNUSED(stayopen)) { - NSS_SETENT(protoentfp); + NSS_SETENT(serventfp); } /* read a single returned service definition */ @@ -81,12 +80,12 @@ nss_status_t _nss_ldap_getservent_r( struct servent *result, char *buffer,size_t buflen,int *errnop) { - NSS_GETENT(protoentfp,NSLCD_ACTION_SERVICE_ALL, - read_servent(protoentfp,result,buffer,buflen,errnop)); + NSS_GETENT(serventfp,NSLCD_ACTION_SERVICE_ALL, + read_servent(serventfp,result,buffer,buflen,errnop)); } /* close the stream opened by setservent() above */ nss_status_t _nss_ldap_endservent(void) { - NSS_ENDENT(protoentfp); + NSS_ENDENT(serventfp); } |