X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=retrieval%2Fd1_espec.c;h=0f36614fe8560f2bdbd66af40f51f7c26033aa69;hp=209d0faa3509674afc99587f255ed8a1f4580975;hb=79bf9f1b8b224b6b7323b280fca704591ac17324;hpb=18cc954000e6b33d2316faea946f0576602b60f3 diff --git a/retrieval/d1_espec.c b/retrieval/d1_espec.c index 209d0fa..0f36614 100644 --- a/retrieval/d1_espec.c +++ b/retrieval/d1_espec.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: d1_espec.c,v $ - * Revision 1.10 1997-09-29 07:21:10 adam + * Revision 1.11 1997-09-29 13:18:59 adam + * Added function, oid_ent_to_oid, to replace the function + * oid_getoidbyent, which is not thread safe. + * + * Revision 1.10 1997/09/29 07:21:10 adam * Added typecast to avoid warnings on MSVC. * * Revision 1.9 1997/09/17 12:10:35 adam @@ -55,11 +59,12 @@ static Z_Variant *read_variant(int argc, char **argv, ODR o) Z_Variant *r = odr_malloc(o, sizeof(*r)); oident var1; int i; + int oid[OID_SIZE]; var1.proto = PROTO_Z3950; var1.oclass = CLASS_VARSET; var1.value = VAL_VAR1; - r->globalVariantSetId = odr_oiddup(o, oid_getoidbyent(&var1)); + r->globalVariantSetId = odr_oiddup(o, oid_ent_to_oid(&var1, oid)); if (argc) r->triples = odr_malloc(o, sizeof(Z_Triple*) * argc);