diff options
-rw-r--r-- | nss/common.h | 3 | ||||
-rw-r--r-- | 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); |