diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-03 21:57:11 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2010-10-03 21:57:11 +0000 |
commit | bebac035f67df5083daba4613c77cbc412faee86 (patch) | |
tree | a19f3e450cc3581bf88d02f5cc7fbaee0d7b623c /nss/common.c | |
parent | 7d3e113db9f89f3ed2fbe3854bd9e441a460483b (diff) |
first attempt to split Solaris and Glibc code more and determine NSS flavour in configure script
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1236 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/common.c')
-rw-r--r-- | nss/common.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/nss/common.c b/nss/common.c index 34c41fb..c3c0616 100644 --- a/nss/common.c +++ b/nss/common.c @@ -44,29 +44,8 @@ /* flag used to disable NSS lookups using this module */ int _nss_ldap_enablelookups=1; -#ifdef HAVE_NSSWITCH_H +#ifdef NSS_FLAVOUR_SOLARIS /* Adapted from PADL */ -/* - *Default destructor. - *The entry point for this function is the destructor in the dispatch - *table for the switch. Thus,it's safe to grab the mutex from this - *function. - */ -nss_status_t _nss_ldap_default_destr(nss_backend_t *be,void *args) -{ - /* Ditch the backend. */ - free(be); - return NSS_STATUS_SUCCESS; -} - -/* - *This is the default "constructor" which gets called from each - *constructor,in the NSS dispatch table. - */ -nss_status_t _nss_ldap_default_constr(nss_ldap_backend_t *be) -{ - return NSS_STATUS_SUCCESS; -} /* add a nested netgroup or group to the namelist */ nss_status_t _nss_ldap_namelist_push(struct name_list **head,const char *name) @@ -129,4 +108,4 @@ int _nss_ldap_namelist_find(struct name_list *head,const char *netgroup) return found; } -#endif /* HAVE_NSSWITCH_H */ +#endif /* NSS_FLAVOUR_SOLARIS */ |