From dba09bb1389491f82beb862323a5ccab428a7f2d Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Thu, 12 Oct 2006 11:01:56 +0000 Subject: first round of cleanups, all non-glibc NSS stuff has been removed, because we are going to do some major restructuring it will not likely remain valid anyway and we can always re-add it later git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@10 ef36b2f9-881f-0410-afb5-c4e39611909c --- ldap-hosts.h | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) (limited to 'ldap-hosts.h') diff --git a/ldap-hosts.h b/ldap-hosts.h index 3e283f5..f0a2889 100644 --- a/ldap-hosts.h +++ b/ldap-hosts.h @@ -1,4 +1,5 @@ -/* Copyright (C) 1997-2005 Luke Howard. +/* + Copyright (C) 1997-2005 Luke Howard This file is part of the nss_ldap library. Contributed by Luke Howard, , 1997. @@ -16,7 +17,9 @@ License along with the nss_ldap library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ + + $Id$ +*/ #ifndef _LDAP_NSS_LDAP_LDAP_HOSTS_H #define _LDAP_NSS_LDAP_LDAP_HOSTS_H @@ -28,32 +31,9 @@ * */ - -#if defined(HAVE_NSSWITCH_H) || defined(DL_NSS) -/* XXX Fixme */ -#ifndef INADDRSZ -#define INADDRSZ (sizeof(u_long)) -#endif -#endif - - -static NSS_STATUS _nss_ldap_parse_host (LDAPMessage * e, +static enum nss_status _nss_ldap_parse_host (LDAPMessage * e, ldap_state_t * pvt, void *result, char *buffer, size_t buflen, int af); -#ifdef HAVE_NSSWITCH_H -static NSS_STATUS _nss_ldap_gethostbyname_r (nss_backend_t * be, - void *fakeargs); -static NSS_STATUS _nss_ldap_gethostbyaddr_r (nss_backend_t * be, - void *fakeargs); -static NSS_STATUS _nss_ldap_gethostent_r (nss_backend_t * be, void *fakeargs); -static NSS_STATUS _nss_ldap_sethostent_r (nss_backend_t * be, void *fakeargs); -static NSS_STATUS _nss_ldap_endhostent_r (nss_backend_t * be, void *fakeargs); - -nss_backend_t *_nss_ldap_hosts_constr (const char *db_name, - const char *src_name, - const char *cfg_args); -#endif - #endif /* _LDAP_NSS_LDAP_LDAP_HOSTS_H */ -- cgit v1.2.3