Fixed the LDAP_DEPRECATED #define as suggested by Daniel Johnson, and

indented some of the code to curl-style
This commit is contained in:
Daniel Stenberg
2007-08-12 22:25:50 +00:00
parent df3e8e19c1
commit 1b88990cbb

View File

@@ -46,7 +46,7 @@
#ifdef CURL_LDAP_WIN /* Use W$ LDAP implementation. */
# include <winldap.h>
#else
#define LDAP_DEPRECATED /* Be sure ldap_init() is defined. */
#define LDAP_DEPRECATED 1 /* Be sure ldap_init() is defined. */
# include <ldap.h>
#endif
@@ -459,7 +459,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
for (i = 0; ludp->lud_exts[i]; i++)
LDAP_TRACE (("exts[%d] '%s'\n", i, ludp->lud_exts[i]));
success:
success:
if (!unescape_elements(conn->data, ludp))
return LDAP_NO_MEMORY;
return LDAP_SUCCESS;