diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-15 11:35:23 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-15 11:35:23 +0000 |
commit | d9da865587f2281a1b25021b1e5892cc9195d222 (patch) | |
tree | 9f87408516e0faf185426360faa010c284d1ae1b /nslcd/host.c | |
parent | 9d234aba05b04ce0a76da271f4e5ab49237f7d8c (diff) |
do not pass useless errnos around because they aren't used anymore
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@404 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/host.c')
-rw-r--r-- | nslcd/host.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/nslcd/host.c b/nslcd/host.c index 1128963..a253608 100644 --- a/nslcd/host.c +++ b/nslcd/host.c @@ -298,7 +298,6 @@ int nslcd_host_byname(TFILE *fp,MYLDAP_SESSION *session) int retv; struct hostent result; char buffer[1024]; - int errnop; /* read request parameters */ READ_STRING_BUF2(fp,name,sizeof(name)); /* log call */ @@ -309,7 +308,7 @@ int nslcd_host_byname(TFILE *fp,MYLDAP_SESSION *session) /* do the LDAP request */ mkfilter_host_byname(name,filter,sizeof(filter)); host_init(); - retv=_nss_ldap_getbyname(session,&result,buffer,1024,&errnop, + retv=_nss_ldap_getbyname(session,&result,buffer,1024, host_base,host_scope,filter,host_attrs, _nss_ldap_parse_host); /* write the response */ @@ -330,7 +329,6 @@ int nslcd_host_byaddr(TFILE *fp,MYLDAP_SESSION *session) int retv; struct hostent result; char buffer[1024]; - int errnop; /* read address family */ READ_INT32(fp,af); if ((af!=AF_INET)&&(af!=AF_INET6)) @@ -361,7 +359,7 @@ int nslcd_host_byaddr(TFILE *fp,MYLDAP_SESSION *session) /* do the LDAP request */ mkfilter_host_byaddr(name,filter,sizeof(filter)); host_init(); - retv=_nss_ldap_getbyname(session,&result,buffer,1024,&errnop, + retv=_nss_ldap_getbyname(session,&result,buffer,1024, host_base,host_scope,filter,host_attrs, _nss_ldap_parse_host); /* write the response */ @@ -379,7 +377,6 @@ int nslcd_host_all(TFILE *fp,MYLDAP_SESSION *session) /* these are here for now until we rewrite the LDAP code */ struct hostent result; char buffer[1024]; - int errnop; int retv; /* log call */ log_log(LOG_DEBUG,"nslcd_host_all()"); @@ -390,7 +387,7 @@ int nslcd_host_all(TFILE *fp,MYLDAP_SESSION *session) _nss_ldap_ent_context_init(&context,session); /* loop over all results */ host_init(); - while ((retv=_nss_ldap_getent(&context,&result,buffer,sizeof(buffer),&errnop, + while ((retv=_nss_ldap_getent(&context,&result,buffer,sizeof(buffer), host_base,host_scope,host_filter,host_attrs, _nss_ldap_parse_host))==NSLCD_RESULT_SUCCESS) { |