X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fber_oid.c;h=89b8dfaf1fa8dfe68819602976c528f512124987;hp=c5dd5ea54c544146f49199c356389186a863057f;hb=a7585fd1220c684189091e7fba2c5d6cf436031e;hpb=8d691989077a0addcbd840d769dce6700f3d9622 diff --git a/src/ber_oid.c b/src/ber_oid.c index c5dd5ea..89b8dfa 100644 --- a/src/ber_oid.c +++ b/src/ber_oid.c @@ -1,11 +1,9 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. - * - * $Id: ber_oid.c,v 1.9 2007-01-03 08:42: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