Fix missing return type. Fix function name
authorDennis Schafroth <dennis@indexdata.com>
Fri, 28 Oct 2011 08:32:00 +0000 (10:32 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 28 Oct 2011 08:32:00 +0000 (10:32 +0200)
src/solr.c

index 5c43831..d3e9c11 100644 (file)
@@ -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, "<suggestion>");
                     extract_text_node(child, wrbuf);
                     wrbuf_puts(wrbuf, "</suggestion>\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")) {