Goodbye to Odr_oct.size
[yaz-moved-to-github.git] / src / ber_any.c
index e4bcef3..be23946 100644 (file)
@@ -33,13 +33,10 @@ int ber_any(ODR o, Odr_any **p)
         (*p)->buf = (char *)odr_malloc(o, res);
         memcpy((*p)->buf, o->bp, res);
         (*p)->len = res;
-#if OCT_SIZE
-        (*p)->size = res;
-#endif
         o->bp += res;
         return 1;
     case ODR_ENCODE:
-        if (odr_write2(o, (*p)->buf, (*p)->len) < 0)
+        if (odr_write(o, (*p)->buf, (*p)->len) < 0)
             return 0;
         return 1;
     default: odr_seterror(o, OOTHER, 3); return 0;