X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fdumpber.c;fp=odr%2Fdumpber.c;h=3daba15cc65117bef4427e83459d54f1137b3347;hb=9f397feecfd366f335e8a7e30b13431790c00f84;hp=253e1609d6bdedcfeaa8ed932ada67e52fc43ab3;hpb=6d7038a051e53896c8447bec79279353a3ab57ef;p=yaz-moved-to-github.git diff --git a/odr/dumpber.c b/odr/dumpber.c index 253e160..3daba15 100644 --- a/odr/dumpber.c +++ b/odr/dumpber.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: dumpber.c,v $ - * Revision 1.1 1995-06-19 12:38:45 quinn + * 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 +25,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 +56,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;