From 545b5555fbaba331655552166e3949fa3ee05528 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 4 Apr 2007 17:51:10 +0000 Subject: [PATCH] ber_decode_oid(), ber_encode_oid(): cast bv_val to unsigned char* --- libraries/liblber/decode.c | 2 +- libraries/liblber/encode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5