]> granicus.if.org Git - curl/commitdiff
Gisle: minor fix
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 May 2004 10:38:57 +0000 (10:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 May 2004 10:38:57 +0000 (10:38 +0000)
lib/ldap.c

index 968b7ac3b35a15312285f505c710a5ad2f15b562..6ee2fce4ee4ed11aac815b9f5ba60b9019dd48ac 100644 (file)
@@ -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)