summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-12-17 20:13:39 +0000
committerArthur de Jong <arthur@arthurdejong.org>2010-12-17 20:13:39 +0000
commit4e9224817ee303404b804a1a51f2f9c9a49164e4 (patch)
tree4d0d1b063ebece8cae72b275ab9a8bdd1730576a
parent8afe8b7a20f72c980834f4e943a0db0e5809302e (diff)
move LDAP_BE() definition
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-solaris@1335 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nss/common.h3
-rw-r--r--nss/prototypes.h2
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);