projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Windows-support changes
[yaz-moved-to-github.git]
/
odr
/
dumpber.c
diff --git
a/odr/dumpber.c
b/odr/dumpber.c
index
253e160
..
5b97245
100644
(file)
--- a/
odr/dumpber.c
+++ b/
odr/dumpber.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dumpber.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: dumpber.c,v $
- * Revision 1.1 1995-06-19 12:38:45 quinn
+ * 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.
*
*
* Added BER dumper.
*
*
@@
-22,7
+28,7
@@
static int do_dumpBER(FILE *f, char *buf, int len, int level)
return 0;
if (!buf[0] && !buf[1])
return 0;
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)
{
return 0;
if (res > len)
{
@@
-53,7
+59,7
@@
static int do_dumpBER(FILE *f, char *buf, int len, int level)
fprintf(stderr, "[%d:%d]", class, tag);
b += res;
len -= res;
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;
{
fprintf(stderr, "bad length\n");
return 0;
@@
-105,7
+111,7
@@
static int do_dumpBER(FILE *f, char *buf, int len, int level)
return b - buf;
}
return b - buf;
}
-int odr_dumpBER(FILE *f, char *buf, int len)
+int MDF odr_dumpBER(FILE *f, char *buf, int len)
{
return do_dumpBER(f, buf, len, 0);
}
{
return do_dumpBER(f, buf, len, 0);
}