X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_oct.c;h=8d3cc059119e210fda21e9b9cb4c258f1897c303;hb=60a702f390f7e2addfdab79f2328db3ba2897c8b;hp=a4369fe0ef59ff33ae2ef96d2e27df4c00070838;hpb=3cef72d7093afaa8b106e4160ef0885b2ac50335;p=yaz-moved-to-github.git diff --git a/src/odr_oct.c b/src/odr_oct.c index a4369fe..8d3cc05 100644 --- a/src/odr_oct.c +++ b/src/odr_oct.c @@ -1,14 +1,17 @@ /* - * Copyright (c) 1995-2004, Index Data + * Copyright (C) 1995-2005, Index Data ApS * 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.8 2005-01-15 19:47:14 adam Exp $ + */ +/** + * \file odr_oct.c + * \brief Implements ODR OCTET codec */ #if HAVE_CONFIG_H #include #endif -#include #include "odr-priv.h" /* @@ -32,12 +35,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) { - int i; 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; }