X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=ztest%2Fztest.c;h=69a8786dd727ba83426845aeee7036295122c62c;hb=b56b6242e4e9c0011b9a2dae6d67c3ef0789251f;hp=c786d8929e25c6fad20fbca0581d751243f33c73;hpb=79e871ca9f4d35a123a8a0dddb60b4a8c8b62dbd;p=yaz-moved-to-github.git diff --git a/ztest/ztest.c b/ztest/ztest.c index c786d89..69a8786 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -252,9 +252,10 @@ Z_OtherInformation *build_facet_response(ODR odr, Z_FacetList *facet_list) { for (index = 0; index < facet_list->num; index++) { struct yaz_facet_attr attrvalues; - facet_struct_init(&attrvalues); + yaz_facet_attr_init(&attrvalues); attrvalues.limit = 10; - facetattrs(facet_list->elements[index]->attributes, &attrvalues); + yaz_facet_attr_get_z_attributes(facet_list->elements[index]->attributes, + &attrvalues); yaz_log(YLOG_LOG, "Attributes: %s %d ", attrvalues.useattr, attrvalues.limit); if (attrvalues.errstring) yaz_log(YLOG_LOG, "Error parsing attributes: %s", attrvalues.errstring);