]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/url.c
ITS#1732 signed/unsigned fixes
[openldap] / libraries / libldap / url.c
index 85ac5ea01b472f85374405e3e8a3265c276b4bb8..97059170b7d214db18b30fe4d1e417de65933ef9 100644 (file)
@@ -445,7 +445,11 @@ ldap_url_parse_ext( LDAP_CONST char *url_in, LDAPURLDesc **ludpp )
         * because a call to LDAP_INT_GLOBAL_OPT() will try to allocate
         * the options and cause infinite recursion
         */
+#ifdef NEW_LOGGING
+       LDAP_LOG (( "url", LDAP_LEVEL_ENTRY, "ldap_url_parse_ext(%s)\n", url_in ));
+#else
        Debug( LDAP_DEBUG_TRACE, "ldap_url_parse_ext(%s)\n", url_in, 0, 0 );
+#endif
 #endif
 
        *ludpp = NULL;  /* pessimistic */
@@ -887,7 +891,7 @@ ldap_url_parselist (LDAPURLDesc **ludlist, const char *url )
        if (url == NULL)
                return LDAP_PARAM_ERROR;
 
-       urls = ldap_str2charray((char *)url, ", ");
+       urls = ldap_str2charray(url, ", ");
        if (urls == NULL)
                return LDAP_NO_MEMORY;
 
@@ -924,7 +928,7 @@ ldap_url_parsehosts(
        if (hosts == NULL)
                return LDAP_PARAM_ERROR;
 
-       specs = ldap_str2charray((char *)hosts, ", ");
+       specs = ldap_str2charray(hosts, ", ");
        if (specs == NULL)
                return LDAP_NO_MEMORY;