Move otherinfo facet stuff to facet.c
[yaz-moved-to-github.git] / client / client.c
index c6c1ab3..36e328d 100644 (file)
@@ -248,9 +248,8 @@ void add_otherInfos(Z_APDU *a)
     int i;
 
     yaz_oi_APDU(a, &oi);
-    if (facet_list) {
-        yaz_oi_set_facetlist_oid(oi, out, yaz_oid_userinfo_facet_1, 1, facet_list);
-    }
+    if (facet_list)
+        yaz_oi_set_facetlist(oi, out, facet_list);
     for (i = 0; i < maxOtherInfosSupported; ++i)
     {
         if (oid_oidlen(extraOtherInfos[i].oid) > 0)