From e22dc83ac096d1239a6903199f5dc3231b0f444b Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Fri, 1 May 2009 22:00:34 +0000 Subject: [PATCH] Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char* --- clients/tools/common.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5