From 8f571ff2e9520246cd64ad7d2cece1854d6c13b5 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 14 Nov 2005 15:41:08 +0000 Subject: [PATCH] Let ber_bvchr() and ber_bvrchr() return char* instead of void* --- include/lber_pvt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { \ -- 2.39.5