X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_oid.c;h=1231968a75057db614313e172b81e6071aba5d89;hp=ed05298ca4d1c4d859086d0570a44e9c4d6a8528;hb=5bc2ee09e4dff0f872ce738a5327bced915e3474;hpb=a1f888c8d35ebce2c0b3a6be4e7dc4f7d9dfcf63 diff --git a/src/ber_oid.c b/src/ber_oid.c index ed05298..1231968 100644 --- a/src/ber_oid.c +++ b/src/ber_oid.c @@ -1,11 +1,9 @@ -/* - * Copyright (C) 1995-2005, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. - * - * $Id: ber_oid.c,v 1.8 2006-04-17 07:40:15 adam Exp $ */ -/** +/** * \file ber_oid.c * \brief Implements BER OID encoding and decoding * @@ -104,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 { @@ -130,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; } @@ -138,6 +136,7 @@ int ber_oidc(ODR o, Odr_oid *p, int max_oid_size) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab