mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix Debug(%d, scred->bv_len or -1) -> Debug(%ld, (long) scred->bv_len or -1L).
Cast sasl_encode() arg from unsigned char* to char*. Warning cleanup: signed meets unsigned.
This commit is contained in:
parent
036e7dac59
commit
b464a790b8
@ -162,7 +162,7 @@ sb_sasl_cyrus_encode(
|
|||||||
ber_int_t ret;
|
ber_int_t ret;
|
||||||
unsigned tmpsize = dst->buf_size;
|
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,
|
(SASL_CONST char **)&dst->buf_base,
|
||||||
&tmpsize );
|
&tmpsize );
|
||||||
|
|
||||||
@ -556,7 +556,7 @@ ldap_int_sasl_bind(
|
|||||||
/* and server provided us with data? */
|
/* and server provided us with data? */
|
||||||
Debug( LDAP_DEBUG_TRACE,
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
"ldap_int_sasl_bind: rc=%d sasl=%d len=%ld\n",
|
"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 );
|
ber_bvfree( scred );
|
||||||
scred = NULL;
|
scred = NULL;
|
||||||
}
|
}
|
||||||
@ -840,7 +840,7 @@ int ldap_pvt_sasl_secprops(
|
|||||||
const char *in,
|
const char *in,
|
||||||
sasl_security_properties_t *secprops )
|
sasl_security_properties_t *secprops )
|
||||||
{
|
{
|
||||||
int i, j, l;
|
unsigned i, j, l;
|
||||||
char **props;
|
char **props;
|
||||||
unsigned sflags = 0;
|
unsigned sflags = 0;
|
||||||
int got_sflags = 0;
|
int got_sflags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user