X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fber_bit.c;h=b2242c40be18d18f4ac7d3c8edee7bb13e985673;hb=69b1d8e7b437179163fe97b7cbead51a56835f2a;hp=edce71a0df27129f29d845052ba7fcae258f7b80;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35;p=yaz-moved-to-github.git diff --git a/src/ber_bit.c b/src/ber_bit.c index edce71a..b2242c4 100644 --- a/src/ber_bit.c +++ b/src/ber_bit.c @@ -1,9 +1,9 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ -/** +/** * \file ber_bit.c * \brief Implements BER BITSTRING encoding and decoding. * @@ -20,7 +20,7 @@ int ber_bitstring(ODR o, Odr_bitmask *p, int cons) { int res, len; - const unsigned char *base; + const char *base; switch (o->direction) { @@ -70,12 +70,12 @@ int ber_bitstring(ODR o, Odr_bitmask *p, int cons) return 0; if (p->top < 0) return 1; - if (odr_write(o, p->bits, p->top + 1) < 0) + if (odr_write2(o, p->bits, p->top + 1) < 0) return 0; return 1; case ODR_PRINT: return 1; - default: + default: odr_seterror(o, OOTHER, 8); return 0; }