X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zutil%2Fz3950oid.c;h=95687a0e07129a3c90853043092fe0cdb779e9ea;hp=2622d8e99505ff2aaa61c12301fdb9f923edd9c8;hb=4d531a1a9131d69c3b6c27fbac42837e22cff61c;hpb=ddac2b650c387c8ab108827c8ead16371f16340d diff --git a/zutil/z3950oid.c b/zutil/z3950oid.c index 2622d8e..95687a0 100644 --- a/zutil/z3950oid.c +++ b/zutil/z3950oid.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2002, Index Data + * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: z3950oid.c,v 1.3 2002-08-29 19:36:09 ja7 Exp $ + * $Id: z3950oid.c,v 1.5 2003-01-06 08:20:29 adam Exp $ */ #if HAVE_CONFIG_H @@ -52,29 +52,31 @@ const char *yaz_z3950oid_to_str (Odr_oid *oid, int *oid_class) } -const char* yaz_z3950_oid_value_to_str(oid_value ov, oid_class oc) { - struct oident tmpentry; - int tmp_oid[OID_SIZE]; - - - tmpentry.proto = PROTO_Z3950; - tmpentry.oclass = oc; - tmpentry.value = ov; - - if( oid_ent_to_oid(&tmpentry,tmp_oid) ) - { - return tmpentry.desc; - } - else - { - return ""; - }; -}; +const char* yaz_z3950_oid_value_to_str(oid_value ov, oid_class oc) +{ + struct oident tmpentry; + int tmp_oid[OID_SIZE]; + + tmpentry.proto = PROTO_Z3950; + tmpentry.oclass = oc; + tmpentry.value = ov; + + if( oid_ent_to_oid(&tmpentry,tmp_oid) ) + { + return tmpentry.desc; + } + else + { + return ""; + } +} /* * Local variables: - * tab-width: 4 + * tab-width: 8 * c-basic-offset: 4 * End: + * vim600: sw=4 ts=8 fdm=marker + * vim<600: sw=4 ts=8 */