No unsigned char's in public API (except for iconv)
[yaz-moved-to-github.git] / src / ber_bit.c
index 00ea535..b2242c4 100644 (file)
@@ -20,7 +20,7 @@
 int ber_bitstring(ODR o, Odr_bitmask *p, int cons)
 {
     int res, len;
-    const unsigned char *base;
+    const char *base;
 
     switch (o->direction)
     {
@@ -70,7 +70,7 @@ int ber_bitstring(ODR o, Odr_bitmask *p, int cons)
             return 0;
         if (p->top < 0)
             return 1;
-        if (odr_write(o, p->bits, p->top + 1) < 0)
+        if (odr_write2(o, p->bits, p->top + 1) < 0)
             return 0;
         return 1;
     case ODR_PRINT: