diff options
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 c8105d3..78b5b43 100644 --- a/nslcd/host.c +++ b/nslcd/host.c @@ -61,13 +61,13 @@ #endif /* the attributes to request with searches */ -static const char *attlst[3]; +static const char *host_attlst[3]; -static void attlst_init(void) +static void host_attlst_init(void) { - attlst[0] = attmap_host_cn; - attlst[1] = attmap_host_ipHostNumber; - attlst[2] = NULL; + host_attlst[0]=attmap_host_cn; + host_attlst[1]=attmap_host_ipHostNumber; + host_attlst[2]=NULL; } /* write a single host entry to the stream */ @@ -276,8 +276,8 @@ int nslcd_host_byname(TFILE *fp) LA_INIT(a); LA_STRING(a)=name; LA_TYPE(a)=LA_TYPE_STRING; - attlst_init(); - retv=nss2nslcd(_nss_ldap_getbyname(&a,&result,buffer,1024,&errnop,_nss_ldap_filt_gethostbyname,LM_HOSTS,attlst, + host_attlst_init(); + retv=nss2nslcd(_nss_ldap_getbyname(&a,&result,buffer,1024,&errnop,_nss_ldap_filt_gethostbyname,LM_HOSTS,host_attlst, #ifdef INET6 (af == AF_INET6)?_nss_ldap_parse_hostv6:_nss_ldap_parse_hostv4)); #else @@ -334,8 +334,8 @@ int nslcd_host_byaddr(TFILE *fp) LA_INIT(a); LA_STRING(a)=name; LA_TYPE(a)=LA_TYPE_STRING; - attlst_init(); - retv=nss2nslcd(_nss_ldap_getbyname(&a,&result,buffer,1024,&errnop,_nss_ldap_filt_gethostbyaddr,LM_HOSTS,attlst, + host_attlst_init(); + retv=nss2nslcd(_nss_ldap_getbyname(&a,&result,buffer,1024,&errnop,_nss_ldap_filt_gethostbyaddr,LM_HOSTS,host_attlst, #ifdef INET6 (af == AF_INET6)?_nss_ldap_parse_hostv6:_nss_ldap_parse_hostv4)); #else @@ -368,9 +368,9 @@ int nslcd_host_all(TFILE *fp) if (_nss_ldap_ent_context_init(&host_context)==NULL) return -1; /* loop over all results */ - attlst_init(); + host_attlst_init(); while ((retv=nss2nslcd(_nss_ldap_getent(&host_context,&result,buffer,1024,&errnop,_nss_ldap_filt_gethostent,LM_HOSTS, - attlst, + host_attlst, #ifdef INET6 (_res.options&RES_USE_INET6)?_nss_ldap_parse_hostv6:_nss_ldap_parse_hostv4 #else |