Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char*

This commit is contained in:
Hallvard Furuseth 2009-04-29 22:19:39 +00:00
parent fd609f3299
commit 8171f077ca

View File

@ -2011,7 +2011,10 @@ print_deref( LDAP *ld, LDAPControl *ctrl )
}
*ptr++ = '=';
if ( k == -1 ) {
k = lutil_b64_ntop( dv->vals[ j ].bv_val, dv->vals[ j ].bv_len, ptr, buf + len - ptr );
k = lutil_b64_ntop(
(unsigned char *) dv->vals[ j ].bv_val,
dv->vals[ j ].bv_len,
ptr, buf + len - ptr );
assert( k >= 0 );
ptr += k;