aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-13 10:38:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-13 10:38:57 +0000
commit4345c7a7121bc0132576a811f7150d55a6f41f3f (patch)
treed8171f13eb263cf55ae857f1ed53b5d25e175ead
parent12d5e33dc99107358c53a488583e251ee4ec2878 (diff)
Gisle: minor fix
-rw-r--r--lib/ldap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 968b7ac3b..6ee2fce4e 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -104,7 +104,9 @@ typedef void * (*dynafunc)(void *input);
/***********************************************************************
*/
static void *libldap = NULL;
+#ifndef WIN32
static void *liblber = NULL;
+#endif
static int DynaOpen(const char **mod_name)
{
@@ -500,7 +502,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
return LDAP_NO_MEMORY;
p = strchr(ludp->lud_dn, '?');
- LDAP_TRACE (("DN '%.*s'\n", p ? (p-ludp->lud_dn) : strlen(ludp->lud_dn),
+ LDAP_TRACE (("DN '%.*s'\n", p ? (size_t)(p-ludp->lud_dn) : strlen(ludp->lud_dn),
ludp->lud_dn));
if (!p)