X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_bool.c;h=5364b775a0f6e7128969bee0df4b3cfe0ecb4ecf;hp=f5310a329e032aa17517a2ce2a793492d6930865;hb=ea0ffea1d02fe623b4da5b7b8aa972aa9f32f071;hpb=43a9d38d20c1b1bcd1a03b2445a501d27526bd35 diff --git a/src/ber_bool.c b/src/ber_bool.c index f5310a3..5364b77 100644 --- a/src/ber_bool.c +++ b/src/ber_bool.c @@ -1,9 +1,9 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ -/** +/** * \file ber_bool.c * \brief Implements BER BOOLEAN encoding and decoding * @@ -31,19 +31,19 @@ int ber_boolean(ODR o, int *val) return 0; return 1; case ODR_DECODE: - if ((res = ber_declen(o->bp, &len, odr_max(o))) < 0) + if ((res = ber_declen(o->op->bp, &len, odr_max(o))) < 0) { odr_seterror(o, OPROTO, 9); return 0; } - o->bp+= res; + o->op->bp+= res; if (len != 1 || odr_max(o) < len) { odr_seterror(o, OPROTO, 10); return 0; } - *val = *o->bp; - o->bp++; + *val = *o->op->bp; + o->op->bp++; return 1; case ODR_PRINT: return 1;