X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_mem.c;h=4309d3da5a0b445f6d5c8f21e16612b9d4568baa;hb=1b750a9f8ea0d258fde61f5bac2d5af5bd783eb0;hp=cfd082b554fc11f6fba3eef8c313e4c88cf436eb;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e;p=yaz-moved-to-github.git diff --git a/src/odr_mem.c b/src/odr_mem.c index cfd082b..4309d3d 100644 --- a/src/odr_mem.c +++ b/src/odr_mem.c @@ -96,7 +96,7 @@ int odr_grow_block(ODR b, int min_bytes) return 0; } -int odr_write(ODR o, unsigned char *buf, int bytes) +int odr_write2(ODR o, const char *buf, int bytes) { if (o->pos + bytes >= o->size && odr_grow_block(o, bytes)) { @@ -110,6 +110,11 @@ int odr_write(ODR o, unsigned char *buf, int bytes) return 0; } +int odr_write(ODR o, unsigned char *buf, int bytes) +{ + return odr_write2(o, (char *) buf, bytes); +} + int odr_seek(ODR o, int whence, int offset) { if (whence == ODR_S_CUR)