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
Added several type casts for C++ compile
[yaz-moved-to-github.git]
/
src
/
odr.c
diff --git
a/src/odr.c
b/src/odr.c
index
4cf86ad
..
ea7a7f3
100644
(file)
--- a/
src/odr.c
+++ b/
src/odr.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: odr.c,v 1.5 2004-08-24 08:44:10 adam Exp $
+ * $Id: odr.c,v 1.7 2004-10-02 13:28:26 adam Exp $
*
*/
#if HAVE_CONFIG_H
*
*/
#if HAVE_CONFIG_H
@@
-116,7
+116,7
@@
void odr_FILE_write(ODR o, void *handle, int type,
fputs(" ..... ", (FILE*) handle);
i = len - 1000;
}
fputs(" ..... ", (FILE*) handle);
i = len - 1000;
}
- if (strchr("\r\n\f\t", c) || c >= ' ' && c <= 126)
+ if (strchr("\r\n\f\t", c) || (c >= ' ' && c <= 126))
putc(c, (FILE*) handle);
else
{
putc(c, (FILE*) handle);
else
{
@@
-145,7
+145,7
@@
void odr_set_stream(ODR o, void *handle,
const char *buf, int len),
void (*stream_close)(void *handle))
{
const char *buf, int len),
void (*stream_close)(void *handle))
{
- o->print = handle;
+ o->print = (FILE*) handle;
o->op->stream_write = stream_write;
o->op->stream_close = stream_close;
}
o->op->stream_write = stream_write;
o->op->stream_close = stream_close;
}