]> git.sur5r.net Git - openldap/commitdiff
ber_decode_oid(), ber_encode_oid(): cast bv_val to unsigned char*
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 4 Apr 2007 17:51:10 +0000 (17:51 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 4 Apr 2007 17:51:10 +0000 (17:51 +0000)
libraries/liblber/decode.c
libraries/liblber/encode.c

index 3b8516e6ea235b9f5cdc974f20719ec141e349df..82027d658fb76de9a02bf57e55251ef9d726214b 100644 (file)
@@ -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;
index 44003f2391a563b7ac2b892e97e7bb5840fbc11c..9edbf66d44ae6c324b12f17d296a6db70910f81e 100644 (file)
@@ -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;