X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_oid.c;h=1231968a75057db614313e172b81e6071aba5d89;hp=ce5d370e74e83154931d886919b2d869f6b30545;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hpb=7b27a8f378d73a86e8ff5e4fa3285117362481c5 diff --git a/src/ber_oid.c b/src/ber_oid.c index ce5d370..1231968 100644 --- a/src/ber_oid.c +++ b/src/ber_oid.c @@ -3,7 +3,7 @@ * See the file LICENSE for details. */ -/** +/** * \file ber_oid.c * \brief Implements BER OID encoding and decoding * @@ -102,7 +102,7 @@ int ber_oidc(ODR o, Odr_oid *p, int max_oid_size) n = 0; if (pos == 1) id = p[0]*40 + p[1]; - else + else id = p[pos]; do { @@ -128,7 +128,7 @@ int ber_oidc(ODR o, Odr_oid *p, int max_oid_size) } odr_seek(o, ODR_S_END, 0); return 1; - default: + default: odr_seterror(o, OOTHER, 22); return 0; }