diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-10 19:53:26 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-10 19:53:26 +0000 |
commit | d238994f536002ce2694ba255cad87628d74ffe2 (patch) | |
tree | 7fdabd0f34531052e69901d958328160e34e847b | |
parent | a4f56a17eb13ba7a5941d8a2d239dbe498eceb72 (diff) |
correctly name shared file handle
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1255 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nss/rpc.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -63,12 +63,12 @@ nss_status_t _nss_ldap_getrpcbynumber_r( } /* thread-local file pointer to an ongoing request */ -static __thread TFILE *protoentfp; +static __thread TFILE *rpcentfp; /* request a stream to list all rpc entries */ nss_status_t _nss_ldap_setrpcent(int UNUSED(stayopen)) { - NSS_SETENT(protoentfp); + NSS_SETENT(rpcentfp); } /* get an rpc entry from the list */ @@ -76,12 +76,12 @@ nss_status_t _nss_ldap_getrpcent_r( struct rpcent *result, char *buffer,size_t buflen,int *errnop) { - NSS_GETENT(protoentfp,NSLCD_ACTION_RPC_ALL, - read_rpcent(protoentfp,result,buffer,buflen,errnop)); + NSS_GETENT(rpcentfp,NSLCD_ACTION_RPC_ALL, + read_rpcent(rpcentfp,result,buffer,buflen,errnop)); } /* close the stream opened by setrpcent() above */ nss_status_t _nss_ldap_endrpcent(void) { - NSS_ENDENT(protoentfp); + NSS_ENDENT(rpcentfp); } |