From 06ff64edbe47561d10357592c23dcd196b60f116 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Fri, 28 Oct 2011 10:32:00 +0200 Subject: [PATCH] Fix missing return type. Fix function name --- src/solr.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/solr.c b/src/solr.c index 5c43831..d3e9c11 100644 --- a/src/solr.c +++ b/src/solr.c @@ -204,13 +204,14 @@ static int yaz_solr_decode_facet_counts(ODR o, xmlNodePtr root, return 0; } -static yaz_solr_decode_suggestion_values(xmlNodePtr ptr, WRBUF wrbuf) { +static void yaz_solr_decode_suggestion_values(xmlNodePtr ptr, WRBUF wrbuf) +{ xmlNodePtr node; for (node = ptr; node; node= node->next) { - if (!strcmp(ptr->name,"lst")) { + if (!strcmp((char*)ptr->name, "lst")) { xmlNodePtr child; for (child = ptr->children; child; child= child->next) { - if (match(child, "str", "name", "word")) { + if (match_xml_node_attribute(child, "str", "name", "word")) { wrbuf_puts(wrbuf, ""); extract_text_node(child, wrbuf); wrbuf_puts(wrbuf, "\n"); @@ -220,7 +221,8 @@ static yaz_solr_decode_suggestion_values(xmlNodePtr ptr, WRBUF wrbuf) { } } -static yaz_solr_decode_suggestion_lst(xmlNodePtr lstPtr, WRBUF wrbuf) { +static void yaz_solr_decode_suggestion_lst(xmlNodePtr lstPtr, WRBUF wrbuf) +{ xmlNodePtr node; for (node = lstPtr; node; node= node->next) { if (match_xml_node_attribute(node, "arr", "name", "suggestion")) { -- 1.7.10.4