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
Using blanks for assignments (no code changes)
[yaz-moved-to-github.git]
/
src
/
odr_oct.c
diff --git
a/src/odr_oct.c
b/src/odr_oct.c
index
a4369fe
..
3d10943
100644
(file)
--- a/
src/odr_oct.c
+++ b/
src/odr_oct.c
@@
-2,7
+2,11
@@
* 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_oct.c,v 1.3 2004-08-13 07:30:06 adam Exp $
+ * $Id: odr_oct.c,v 1.6 2004-10-15 00:19:00 adam Exp $
+ */
+/**
+ * \file odr_oct.c
+ * \brief Implements ODR OCTET codec
*/
#if HAVE_CONFIG_H
#include <config.h>
*/
#if HAVE_CONFIG_H
#include <config.h>
@@
-32,12
+36,11
@@
int odr_octetstring(ODR o, Odr_oct **p, int opt, const char *name)
return odr_missing(o, opt, name);
if (o->direction == ODR_PRINT)
{
return odr_missing(o, opt, name);
if (o->direction == ODR_PRINT)
{
- int i;
odr_prname(o, name);
odr_printf(o, "OCTETSTRING(len=%d) ", (*p)->len);
o->op->stream_write(o, o->print, ODR_OCTETSTRING,
odr_prname(o, name);
odr_printf(o, "OCTETSTRING(len=%d) ", (*p)->len);
o->op->stream_write(o, o->print, ODR_OCTETSTRING,
- (*p)->buf, (*p)->len);
+ (char*) (*p)->buf, (*p)->len);
odr_printf(o, "\n");
return 1;
}
odr_printf(o, "\n");
return 1;
}