From: Adam Dickmeiss Date: Thu, 12 May 2011 11:01:42 +0000 (+0200) Subject: Reformat X-Git-Tag: v4.2.0~23 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b57fc2b5c6741125e2ab27872a4898531f6408de;p=yaz-moved-to-github.git Reformat --- diff --git a/src/srw.c b/src/srw.c index 1330c94..76ca208 100644 --- a/src/srw.c +++ b/src/srw.c @@ -450,14 +450,16 @@ Z_FacetTerm *yaz_sru_proxy_get_facet_term_count(ODR odr, xmlNodePtr node) int freq; xmlNodePtr child; WRBUF wrbuf = wrbuf_alloc(); - const char *freq_string = yaz_element_attribute_value_get(node, "facetvalue", "est_representation"); + const char *freq_string = yaz_element_attribute_value_get( + node, "facetvalue", "est_representation"); Z_Term *term; if (freq_string) freq = atoi(freq_string); else freq = -1; - for (child = node->children; child ; child = child->next) { + for (child = node->children; child ; child = child->next) + { if (child->type == XML_TEXT_NODE) wrbuf_puts(wrbuf, (const char *) child->content); } @@ -489,7 +491,9 @@ static Z_FacetField *yaz_sru_proxy_decode_facet_field(ODR odr, xmlNodePtr ptr) { if (match_element(node, "facetvalue")) { - facet_field_term_set(odr, facet_field, yaz_sru_proxy_get_facet_term_count(odr, node), index); + facet_field_term_set(odr, facet_field, + yaz_sru_proxy_get_facet_term_count(odr, node), + index); index++; } }