X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fdumpber.c;h=1a3cedd12654744412bb95752d7854955360ea4d;hp=7e81995b167df69c0adec0be7c940096fd30a4cb;hb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a;hpb=fb6d99a0c7e07d9cc4a315c447deaf6564a85505 diff --git a/src/dumpber.c b/src/dumpber.c index 7e81995..1a3cedd 100644 --- a/src/dumpber.c +++ b/src/dumpber.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. - * - * $Id: dumpber.c,v 1.4 2005-06-25 15:46:04 adam Exp $ */ /** @@ -20,7 +18,7 @@ static int do_dumpBER(FILE *f, const char *buf, int len, int level, int offset) { int res, ll, zclass, tag, cons, lenlen, taglen; - const char *b = buf, *bp = buf; + const char *b = buf; if (!len) return 0; @@ -58,7 +56,6 @@ static int do_dumpBER(FILE *f, const char *buf, int len, int level, int offset) b += res; taglen = res; len -= res; - bp = b; if ((res = ber_declen((unsigned char*)b, &ll, len)) <= 0) { fprintf(f, "\n%*sBad length\n", level*4+5, ""); @@ -130,6 +127,7 @@ int odr_dumpBER(FILE *f, const char *buf, int len) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab