From 4e9224817ee303404b804a1a51f2f9c9a49164e4 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 17 Dec 2010 20:13:39 +0000 Subject: move LDAP_BE() definition git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1335 ef36b2f9-881f-0410-afb5-c4e39611909c --- nss/common.h | 3 --- nss/prototypes.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nss/common.h b/nss/common.h index 903f624..0dcce17 100644 --- a/nss/common.h +++ b/nss/common.h @@ -118,9 +118,6 @@ nss_backend_t *nss_ldap_constructor(nss_backend_op_t *ops,size_t sizeofops); /* destructor for LDAP backends */ nss_status_t nss_ldap_destructor(nss_backend_t *be,void UNUSED(*args)); -/* easy way to get fp from back-end */ -#define LDAP_BE(be) ((struct nss_ldap_backend*)(be)) - #endif /* NSS_FLAVOUR_SOLARIS */ /* The following macros to automatically generate get..byname(), diff --git a/nss/prototypes.h b/nss/prototypes.h index 4989fd9..23c7c33 100644 --- a/nss/prototypes.h +++ b/nss/prototypes.h @@ -123,7 +123,9 @@ nss_status_t _nss_ldap_endspent(void); #ifdef NSS_FLAVOUR_SOLARIS +/* helper marcos to do casts */ #define NSS_ARGS(args) ((nss_XbyY_args_t *)args) +#define LDAP_BE(be) ((struct nss_ldap_backend*)(be)) /* these are the constructors we provide */ nss_backend_t *_nss_ldap_ethers_constr(const char *db_name,const char *src_name,const char *cfg_args); -- cgit v1.2.3-54-g00ecf