From: Hallvard Furuseth Date: Mon, 14 Nov 2005 15:41:08 +0000 (+0000) Subject: Let ber_bvchr() and ber_bvrchr() return char* instead of void* X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8f571ff2e9520246cd64ad7d2cece1854d6c13b5;p=openldap Let ber_bvchr() and ber_bvrchr() return char* instead of void* --- diff --git a/include/lber_pvt.h b/include/lber_pvt.h index 965d5238ea..346e2faecb 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -167,10 +167,10 @@ ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx )); ( (s)[0] == (c) && (s)[1] == '\0' ) #define ber_bvchr(bv,c) \ - memchr( (bv)->bv_val, (c), (bv)->bv_len ) + ((char *) memchr( (bv)->bv_val, (c), (bv)->bv_len )) #define ber_bvrchr(bv,c) \ - memrchr( (bv)->bv_val, (c), (bv)->bv_len ) + ((char *) memrchr( (bv)->bv_val, (c), (bv)->bv_len )) #define ber_bvchr_right(dst,bv,c) \ do { \