X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Foid_util.c;h=6158d3cef3ac5d262def2ec6ef9782f40ecbcfe5;hp=0975d3a49a2cdd6440730027c85fc7a829592263;hb=fcdccb3e9a757d41e1bdf6c18c2b3bdb2314ca3f;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0 diff --git a/src/oid_util.c b/src/oid_util.c index 0975d3a..6158d3c 100644 --- a/src/oid_util.c +++ b/src/oid_util.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ @@ -14,8 +14,8 @@ #include #include -#include +#include #include #include @@ -76,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++; @@ -98,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