From: Adam Dickmeiss Date: Mon, 11 Apr 2011 11:05:17 +0000 (+0200) Subject: Rename internal func yaz_use_attribute_create X-Git-Tag: v4.2.0~43 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=1fbd038d97d6e1bfe97270ecc17cca123bcc435c Rename internal func yaz_use_attribute_create --- diff --git a/src/solr.c b/src/solr.c index 569125b..3458a0b 100644 --- a/src/solr.c +++ b/src/solr.c @@ -137,7 +137,7 @@ Z_FacetField *yaz_solr_decode_facet_field(ODR o, xmlNodePtr ptr, Z_SRW_searchRet if (pos) { pos[0] = 0; } - list = yaz_use_atttribute_create(o, name); + list = yaz_use_attribute_create(o, name); for (node = ptr->children; node; node = node->next) { num_terms++; } diff --git a/src/sru-p.h b/src/sru-p.h index 9cd2597..bf1f158 100644 --- a/src/sru-p.h +++ b/src/sru-p.h @@ -35,7 +35,7 @@ void yaz_add_name_value_str(ODR o, char **name, char **value, int *i, void yaz_add_name_value_int(ODR o, char **name, char **value, int *i, char *a_name, Odr_int *val); -Z_AttributeList *yaz_use_atttribute_create(ODR o, const char *name); +Z_AttributeList *yaz_use_attribute_create(ODR o, const char *name); #if YAZ_HAVE_XML2 #include diff --git a/src/srw.c b/src/srw.c index a037d36..1330c94 100644 --- a/src/srw.c +++ b/src/srw.c @@ -478,7 +478,7 @@ static Z_FacetField *yaz_sru_proxy_decode_facet_field(ODR odr, xmlNodePtr ptr) const char* name = yaz_element_attribute_value_get(ptr, "facet", "code"); yaz_log(YLOG_DEBUG, "sru-proxy facet type: %s", name); - list = yaz_use_atttribute_create(odr, name); + list = yaz_use_attribute_create(odr, name); for (node = ptr->children; node; node = node->next) { if (match_element(node, "facetvalue")) num_terms++; diff --git a/src/srwutil.c b/src/srwutil.c index 1f06836..f6dfdc4 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -36,7 +36,7 @@ char *yaz_encode_sru_dbpath_odr(ODR out, const char *db) return dst; } -Z_AttributeList *yaz_use_atttribute_create(ODR o, const char *name) { +Z_AttributeList *yaz_use_attribute_create(ODR o, const char *name) { Z_AttributeList *attributes= (Z_AttributeList *) odr_malloc(o, sizeof(*attributes)); Z_AttributeElement ** elements; attributes->num_attributes = 1;