diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-10-17 14:13:17 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-10-17 14:13:17 +0000 |
commit | 198b9cdb023374fb47f91f5503655ca14b805a5f (patch) | |
tree | 58895dcecdffcb555e723bd036cabd118390382e /ldap-parse.h | |
parent | 42688c3b7d616c8dc221a76b1cf2155d336db954 (diff) |
get rid of ltf files (which contain NPL licenced code btw) clean up includes and general small code cleanups
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/libnss_ldapd@19 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'ldap-parse.h')
-rw-r--r-- | ldap-parse.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ldap-parse.h b/ldap-parse.h index bce9e43..d465512 100644 --- a/ldap-parse.h +++ b/ldap-parse.h @@ -35,6 +35,7 @@ LA_STRING(a) = name; \ LA_TYPE(a) = LA_TYPE_STRING; \ return _nss_ldap_getbyname(&a, result, buffer, buflen, errnop, filter, selector, parser); + #define LOOKUP_NUMBER(number, result, buffer, buflen, errnop, filter, selector, parser, req_buflen) \ struct ldap_args a; \ if (buflen < req_buflen) { \ @@ -45,6 +46,7 @@ LA_NUMBER(a) = number; \ LA_TYPE(a) = LA_TYPE_NUMBER; \ return _nss_ldap_getbyname(&a, result, buffer, buflen, errnop, filter, selector, parser) + #define LOOKUP_GETENT(key, result, buffer, buflen, errnop, filter, selector, parser, req_buflen) \ if (buflen < req_buflen) { \ *errnop = ERANGE; \ @@ -56,6 +58,7 @@ if (_nss_ldap_ent_context_init(&key) == NULL) \ return NSS_STATUS_UNAVAIL; \ return NSS_STATUS_SUCCESS + #define LOOKUP_ENDENT(key) \ _nss_ldap_enter(); \ _nss_ldap_ent_context_release(key); \ |