]> git.sur5r.net Git - openldap/commitdiff
Fix Debug(%d, scred->bv_len or -1) -> Debug(%ld, (long) scred->bv_len or -1L).
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 17 Oct 2008 20:46:44 +0000 (20:46 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 17 Oct 2008 20:46:44 +0000 (20:46 +0000)
Cast sasl_encode() arg from unsigned char* to char*.
Warning cleanup: signed meets unsigned.

libraries/libldap/cyrus.c

index 0aee1c8a68a90debe190870336b5dc7b70b8e333..aad8f8ed8843a34ff4e9cadbdc7430c0d8f660d9 100644 (file)
@@ -162,7 +162,7 @@ sb_sasl_cyrus_encode(
        ber_int_t ret;
        unsigned tmpsize = dst->buf_size;
 
-       ret = sasl_encode( sasl_context, buf, len,
+       ret = sasl_encode( sasl_context, (char *)buf, len,
                           (SASL_CONST char **)&dst->buf_base,
                           &tmpsize );
 
@@ -556,7 +556,7 @@ ldap_int_sasl_bind(
                                /* and server provided us with data? */
                                Debug( LDAP_DEBUG_TRACE,
                                        "ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
-                                       rc, saslrc, scred ? scred->bv_len : -1 );
+                                       rc, saslrc, scred ? (long) scred->bv_len : -1L );
                                ber_bvfree( scred );
                                scred = NULL;
                        }
@@ -840,7 +840,7 @@ int ldap_pvt_sasl_secprops(
        const char *in,
        sasl_security_properties_t *secprops )
 {
-       int i, j, l;
+       unsigned i, j, l;
        char **props;
        unsigned sflags = 0;
        int got_sflags = 0;