X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Foid_util.c;h=ed60edcdb66286c18948abbe9849d701de04db61;hp=c630ebf03137a53a88c41f14f2de1deae8fad610;hb=4e500dea9790b5ff9ea4fbb3d150c358e3bd2cab;hpb=7a98e9bfbb9d5fe7d44822a9838e3becbdce9363 diff --git a/src/oid_util.c b/src/oid_util.c index c630ebf..ed60edc 100644 --- a/src/oid_util.c +++ b/src/oid_util.c @@ -1,8 +1,6 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) Index Data * See the file LICENSE for details. - * - * $Id: oid_util.c,v 1.4 2007-05-08 08:22:36 adam Exp $ */ /** @@ -16,8 +14,8 @@ #include #include -#include +#include #include #include @@ -64,7 +62,7 @@ char *oid_oid_to_dotstring(const Odr_oid *oid, char *oidbuf) int i; oidbuf[0] = '\0'; - for (i = 0; oid[i] != -1 && i < OID_SIZE; i++) + for (i = 0; oid[i] != -1 && i < OID_SIZE; i++) { yaz_snprintf(tmpbuf, sizeof(tmpbuf)-1, "%d", oid[i]); if (i > 0) @@ -78,7 +76,7 @@ int oid_dotstring_to_oid(const char *name, Odr_oid *oid) { int i = 0; int val = 0; - while (isdigit (*(unsigned char *) name)) + while (yaz_isdigit (*name)) { val = val*10 + (*name - '0'); name++; @@ -100,6 +98,7 @@ int oid_dotstring_to_oid(const char *name, Odr_oid *oid) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab