X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fprt-ext.c;h=f17099482cfb6a65a3930511c1b5bcb868057e31;hp=aad4cc7b8bdff77cacb467bf998b046c8f9528c9;hb=896b145fa7a02199bfc3e8aa824c018b9d7cbf98;hpb=d951267dfd65b4b0741d9b9621474f2731ea3b45 diff --git a/src/prt-ext.c b/src/prt-ext.c index aad4cc7..f170994 100644 --- a/src/prt-ext.c +++ b/src/prt-ext.c @@ -261,18 +261,12 @@ int z_External(ODR o, Z_External **p, int opt, const char *name) Z_External *z_ext_record_oid(ODR o, const Odr_oid *oid, const char *buf, int len) { Z_External *thisext; - char oid_str_buf[OID_STR_MAX]; - const char *oid_str; - oid_class oclass; if (!oid) return 0; thisext = (Z_External *) odr_malloc(o, sizeof(*thisext)); thisext->descriptor = 0; thisext->indirect_reference = 0; - - oid_str = yaz_oid_to_string_buf(oid, &oclass, oid_str_buf); - thisext->direct_reference = odr_oiddup(o, oid); if (len < 0) /* Structured data */ @@ -343,18 +337,12 @@ Z_External *z_ext_record_oid_any(ODR o, const Odr_oid *oid, const char *buf, int len) { Z_External *thisext; - char oid_str_buf[OID_STR_MAX]; - const char *oid_str; - oid_class oclass; if (!oid) return 0; thisext = (Z_External *) odr_malloc(o, sizeof(*thisext)); thisext->descriptor = 0; thisext->indirect_reference = 0; - - oid_str = yaz_oid_to_string_buf(oid, &oclass, oid_str_buf); - thisext->direct_reference = odr_oiddup(o, oid); thisext->which = Z_External_single;