projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/yaz
[yaz-moved-to-github.git]
/
src
/
odr_mem.c
diff --git
a/src/odr_mem.c
b/src/odr_mem.c
index
9972c10
..
4309d3d
100644
(file)
--- a/
src/odr_mem.c
+++ b/
src/odr_mem.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-96,7
+96,7
@@
int odr_grow_block(ODR b, int min_bytes)
return 0;
}
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))
{
{
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;
}
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)
int odr_seek(ODR o, int whence, int offset)
{
if (whence == ODR_S_CUR)