diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-07 11:28:20 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-07 11:28:20 +0200 |
commit | 916f4afca2d7a655e7179f350d09362a18661bb5 (patch) | |
tree | 510208d208f613d8489d98872106773d81aac046 /nslcd/host.c | |
parent | f32b9a15950fd37aed5dae2ccf0a1e60a0fc78ee (diff) |
rename attlst stuff to attrs since that is the name of the parameter that is passed
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@376 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/host.c')
-rw-r--r-- | nslcd/host.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/nslcd/host.c b/nslcd/host.c index 3c9a15c..dc74f02 100644 --- a/nslcd/host.c +++ b/nslcd/host.c @@ -61,7 +61,7 @@ #endif /* the attributes to request with searches */ -static const char *host_attlst[3]; +static const char *host_attrs[3]; /* create a search filter for searching a host entry by name, return -1 on errors */ @@ -100,11 +100,11 @@ static int mkfilter_host_all(char *buffer,size_t buflen) attmap_objectClass,attmap_host_objectClass); } -static void host_attlst_init(void) +static void host_attrs_init(void) { - host_attlst[0]=attmap_host_cn; - host_attlst[1]=attmap_host_ipHostNumber; - host_attlst[2]=NULL; + host_attrs[0]=attmap_host_cn; + host_attrs[1]=attmap_host_ipHostNumber; + host_attrs[2]=NULL; } /* write a single host entry to the stream */ @@ -311,9 +311,9 @@ int nslcd_host_byname(TFILE *fp) WRITE_INT32(fp,NSLCD_ACTION_HOST_BYNAME); /* do the LDAP request */ mkfilter_host_byname(name,filter,sizeof(filter)); - host_attlst_init(); + host_attrs_init(); retv=_nss_ldap_getbyname(&result,buffer,1024,&errnop,LM_HOSTS, - NULL,filter,host_attlst, + NULL,filter,host_attrs, #ifdef INET6 (af == AF_INET6)?_nss_ldap_parse_hostv6:_nss_ldap_parse_hostv4); #else @@ -368,9 +368,9 @@ int nslcd_host_byaddr(TFILE *fp) WRITE_INT32(fp,NSLCD_ACTION_HOST_BYADDR); /* do the LDAP request */ mkfilter_host_byaddr(name,filter,sizeof(filter)); - host_attlst_init(); + host_attrs_init(); retv=_nss_ldap_getbyname(&result,buffer,1024,&errnop,LM_HOSTS, - NULL,filter,host_attlst, + NULL,filter,host_attrs, #ifdef INET6 (af == AF_INET6)?_nss_ldap_parse_hostv6:_nss_ldap_parse_hostv4); #else @@ -403,9 +403,9 @@ int nslcd_host_all(TFILE *fp) if (_nss_ldap_ent_context_init(&host_context)==NULL) return -1; /* loop over all results */ - host_attlst_init(); + host_attrs_init(); while ((retv=nss2nslcd(_nss_ldap_getent(&host_context,&result,buffer,1024,&errnop,_nss_ldap_filt_gethostent,LM_HOSTS, - host_attlst, + host_attrs, #ifdef INET6 (_res.options&RES_USE_INET6)?_nss_ldap_parse_hostv6:_nss_ldap_parse_hostv4 #else |