X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_oct.c;h=1ea73539d706816abab347378b30c714fde79256;hb=5c3d2d2ab097e4bb59ba5718a396b020a2d302c0;hp=27b592737cdae1a63d2163628d47d3587c80a259;hpb=2b2afeeaa041c39c6fcafb225feba8b9e1dad010;p=yaz-moved-to-github.git diff --git a/src/odr_oct.c b/src/odr_oct.c index 27b5927..1ea7353 100644 --- a/src/odr_oct.c +++ b/src/odr_oct.c @@ -2,13 +2,16 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: odr_oct.c,v 1.4 2004-08-13 08:59:07 adam Exp $ + * $Id: odr_oct.c,v 1.7 2004-11-18 15:18:13 heikki Exp $ + */ +/** + * \file odr_oct.c + * \brief Implements ODR OCTET codec */ #if HAVE_CONFIG_H #include #endif -#include #include "odr-priv.h" /* @@ -36,7 +39,7 @@ int odr_octetstring(ODR o, Odr_oct **p, int opt, const char *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; }