X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=odr%2Fdumpber.c;h=7ae685de6a38d56e1f7c8d5aa949e9c9ca00d588;hp=253e1609d6bdedcfeaa8ed932ada67e52fc43ab3;hb=63cafe41a93427118959a74201b3e331169a71d9;hpb=42d3d8a6486c495357574e5db0fc736834d8ba40 diff --git a/odr/dumpber.c b/odr/dumpber.c index 253e160..7ae685d 100644 --- a/odr/dumpber.c +++ b/odr/dumpber.c @@ -4,7 +4,16 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dumpber.c,v $ - * Revision 1.1 1995-06-19 12:38:45 quinn + * Revision 1.4 1995-09-29 17:12:21 quinn + * Smallish + * + * Revision 1.3 1995/09/27 15:02:57 quinn + * Modified function heads & prototypes. + * + * Revision 1.2 1995/06/27 13:20:51 quinn + * Fixed sign-clash. Non-fatal warning + * + * Revision 1.1 1995/06/19 12:38:45 quinn * Added BER dumper. * * @@ -22,7 +31,7 @@ static int do_dumpBER(FILE *f, char *buf, int len, int level) return 0; if (!buf[0] && !buf[1]) return 0; - if ((res = ber_dectag(b, &class, &tag, &cons)) <= 0) + if ((res = ber_dectag((unsigned char*)b, &class, &tag, &cons)) <= 0) return 0; if (res > len) { @@ -53,7 +62,7 @@ static int do_dumpBER(FILE *f, char *buf, int len, int level) fprintf(stderr, "[%d:%d]", class, tag); b += res; len -= res; - if ((res = ber_declen(b, &ll)) <= 0) + if ((res = ber_declen((unsigned char*)b, &ll)) <= 0) { fprintf(stderr, "bad length\n"); return 0;