From 8171f077ca2fbe9177f299e818474a582bc8a334 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 29 Apr 2009 22:19:39 +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 8c85af9d42..4e63da0824 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -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; -- 2.39.5