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
More LOG_DEBUG-diagnostics.
[yaz-moved-to-github.git]
/
odr
/
odr_mem.c
diff --git
a/odr/odr_mem.c
b/odr/odr_mem.c
index
f0792d0
..
20768a5
100644
(file)
--- a/
odr/odr_mem.c
+++ b/
odr/odr_mem.c
@@
-1,10
+1,16
@@
/*
/*
- * Copyright (c) 1995, Index Data
+ * Copyright (c) 1995-1998, Index Data
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_mem.c,v $
* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: odr_mem.c,v $
- * Revision 1.12 1995-11-08 17:41:33 quinn
+ * Revision 1.14 1998-07-20 12:38:15 adam
+ * More LOG_DEBUG-diagnostics.
+ *
+ * Revision 1.13 1998/02/11 11:53:34 adam
+ * Changed code so that it compiles as C++.
+ *
+ * Revision 1.12 1995/11/08 17:41:33 quinn
* Smallish.
*
* Revision 1.11 1995/11/01 13:54:43 quinn
* Smallish.
*
* Revision 1.11 1995/11/01 13:54:43 quinn
@@
-88,9
+94,9
@@
int odr_grow_block(odr_ecblock *b, int min_bytes)
togrow = b->size;
if (togrow < min_bytes)
togrow = min_bytes;
togrow = b->size;
if (togrow < min_bytes)
togrow = min_bytes;
- if (b->size && !(b->buf =xrealloc(b->buf, b->size += togrow)))
+ if (b->size && !(b->buf =(unsigned char *)xrealloc(b->buf, b->size += togrow)))
abort();
abort();
- else if (!b->size && !(b->buf = xmalloc(b->size = togrow)))
+ else if (!b->size && !(b->buf = (unsigned char *)xmalloc(b->size = togrow)))
abort();
#ifdef ODR_DEBUG
fprintf(stderr, "New size for encode_buffer: %d\n", b->size);
abort();
#ifdef ODR_DEBUG
fprintf(stderr, "New size for encode_buffer: %d\n", b->size);