X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2Fdumpber.c;h=fa3734f025d240b8dbffbb2ad43eb56346cc791d;hp=1af624a17138224c900ca3c077207f59bd0ce11f;hb=d9ee01635f03f9095a66f71b73580560d48798e8;hpb=2da6a9a95d6007eca27f715dbf77bea323cb9069 diff --git a/odr/dumpber.c b/odr/dumpber.c index 1af624a..fa3734f 100644 --- a/odr/dumpber.c +++ b/odr/dumpber.c @@ -1,10 +1,16 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995-1999, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: dumpber.c,v $ - * Revision 1.9 1998-01-14 09:53:26 quinn + * Revision 1.11 1999-11-30 13:47:11 adam + * Improved installation. Moved header files to include/yaz. + * + * Revision 1.10 1999/01/08 11:23:26 adam + * Added const modifier to some of the BER/ODR encoding routines. + * + * Revision 1.9 1998/01/14 09:53:26 quinn * Added a bit more info to dump. * * Revision 1.8 1997/05/14 06:53:57 adam @@ -34,13 +40,13 @@ * */ -#include #include +#include -static int do_dumpBER(FILE *f, char *buf, int len, int level, int offset) +static int do_dumpBER(FILE *f, const char *buf, int len, int level, int offset) { int res, ll, zclass, tag, cons, lenlen, taglen; - char *b = buf, *bp = buf; + const char *b = buf, *bp = buf; if (!len) return 0; @@ -133,7 +139,7 @@ static int do_dumpBER(FILE *f, char *buf, int len, int level, int offset) return b - buf; } -int odr_dumpBER(FILE *f, char *buf, int len) +int odr_dumpBER(FILE *f, const char *buf, int len) { return do_dumpBER(f, buf, len, 0, 0); }