]> granicus.if.org Git - curl/commitdiff
typecast long => int conversion
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Jul 2004 21:38:36 +0000 (21:38 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 4 Jul 2004 21:38:36 +0000 (21:38 +0000)
lib/ldap.c

index 6ee2fce4ee4ed11aac815b9f5ba60b9019dd48ac..44029503f89aa09eb784f712edcf75fcbc7ea50b 100644 (file)
@@ -276,7 +276,7 @@ CURLcode Curl_ldap(struct connectdata *conn)
   DYNA_GET_FUNCTION(void (*)(void *), ldap_memfree);
   DYNA_GET_FUNCTION(void (*)(void *, int), ber_free);
 
-  server = (*ldap_init)(conn->host.name, conn->port);
+  server = (*ldap_init)(conn->host.name, (int)conn->port);
   if (server == NULL) {
     failf(data, "LDAP local: Cannot connect to %s:%d",
           conn->host.name, conn->port);