From: Quanah Gibson-Mount Date: Fri, 1 May 2009 22:00:34 +0000 (+0000) Subject: Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char* X-Git-Tag: OPENLDAP_REL_ENG_2_4_17~108 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e22dc83ac096d1239a6903199f5dc3231b0f444b;p=openldap Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char* --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 0ad5809a3e..56b669b562 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -1987,7 +1987,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;