]> git.sur5r.net Git - openldap/commitdiff
Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char*
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 1 May 2009 22:00:34 +0000 (22:00 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 1 May 2009 22:00:34 +0000 (22:00 +0000)
clients/tools/common.c

index 0ad5809a3e2353a67beeca7a539c7009a5daedc0..56b669b562779d91781f82c1a342bb053d80443b 100644 (file)
@@ -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;