Let ber_bvchr() and ber_bvrchr() return char* instead of void*

This commit is contained in:
Hallvard Furuseth 2005-11-14 15:41:08 +00:00
parent 6a778f99f5
commit 8f571ff2e9

View file

@ -167,10 +167,10 @@ ber_bvarray_add_x LDAP_P(( BerVarray *p, BerValue *bv, void *ctx ));
( (s)[0] == (c) && (s)[1] == '\0' ) ( (s)[0] == (c) && (s)[1] == '\0' )
#define ber_bvchr(bv,c) \ #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) \ #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) \ #define ber_bvchr_right(dst,bv,c) \
do { \ do { \