]> git.sur5r.net Git - openldap/commitdiff
Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char*
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 29 Apr 2009 22:19:39 +0000 (22:19 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 29 Apr 2009 22:19:39 +0000 (22:19 +0000)
clients/tools/common.c

index 8c85af9d42637087ce907274c9eea538a4811aa4..4e63da0824a7dfc62bb6b6ae5e83c62827b762d3 100644 (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;