/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
return 0;
if (!buf[0] && !buf[1])
return 0;
- if ((res = ber_dectag((unsigned char*)b, &zclass, &tag, &cons, len)) <= 0)
+ if ((res = ber_dectag(b, &zclass, &tag, &cons, len)) <= 0)
return 0;
if (res > len)
{
- fprintf(f, "%5d: %s : Unexpected enf of buffer\n", offset, level_str);
+ fprintf(f, "%5d: %s : Unexpected end of buffer\n", offset, level_str);
return 0;
}
fprintf(f, "%5d: %s", offset, level_str);
b += res;
taglen = res;
len -= res;
- if ((res = ber_declen((unsigned char*)b, &ll, len)) <= 0)
+ if ((res = ber_declen(b, &ll, len)) <= 0)
{
fprintf(f, "\n%sBad length\n", level_str);
return 0;