X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_mem.c;h=33e2bfadb28f4832eda27901f63ca440aee8ac6d;hb=80559dbf0a5d6993eef844e6f6198d28ff5a44fa;hp=2cc6b4a15deb40a5897f43abab729b39dfba9363;hpb=69b1d8e7b437179163fe97b7cbead51a56835f2a;p=yaz-moved-to-github.git diff --git a/src/odr_mem.c b/src/odr_mem.c index 2cc6b4a..33e2bfa 100644 --- a/src/odr_mem.c +++ b/src/odr_mem.c @@ -67,9 +67,6 @@ Odr_oct *odr_create_Odr_oct(ODR o, const char *buf, int sz) Odr_oct *p = (Odr_oct *) odr_malloc(o, sizeof(Odr_oct)); p->buf = (char *) odr_malloc(o, sz); memcpy(p->buf, buf, sz); -#if OCT_SIZE - p->size = sz; -#endif p->len = sz; return p; } @@ -97,7 +94,7 @@ int odr_grow_block(ODR b, int min_bytes) return 0; } -int odr_write2(ODR o, const char *buf, int bytes) +int odr_write(ODR o, const char *buf, int bytes) { if (o->pos + bytes >= o->size && odr_grow_block(o, bytes)) {