From: Hallvard Furuseth Date: Wed, 4 Apr 2007 17:51:10 +0000 (+0000) Subject: ber_decode_oid(), ber_encode_oid(): cast bv_val to unsigned char* X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~558 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=545b5555fbaba331655552166e3949fa3ee05528;p=openldap ber_decode_oid(), ber_encode_oid(): cast bv_val to unsigned char* --- diff --git a/libraries/liblber/decode.c b/libraries/liblber/decode.c index 3b8516e6ea..82027d658f 100644 --- a/libraries/liblber/decode.c +++ b/libraries/liblber/decode.c @@ -49,7 +49,7 @@ static ber_len_t ber_getnint LDAP_P(( int ber_decode_oid( BerValue *in, BerValue *out ) { - unsigned char *der = in->bv_val; + unsigned char *der = (unsigned char *) in->bv_val; unsigned long val, val1; int i, len; char *ptr; diff --git a/libraries/liblber/encode.c b/libraries/liblber/encode.c index 44003f2391..9edbf66d44 100644 --- a/libraries/liblber/encode.c +++ b/libraries/liblber/encode.c @@ -181,7 +181,7 @@ ber_put_len( BerElement *ber, ber_len_t len, int nosos ) int ber_encode_oid( BerValue *in, BerValue *out ) { - unsigned char *der = out->bv_val; + unsigned char *der = (unsigned char *) out->bv_val; unsigned long val, val1; int i, len; char *ptr, *end, *inend;