From 1fbd038d97d6e1bfe97270ecc17cca123bcc435c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 11 Apr 2011 13:05:17 +0200 Subject: [PATCH] Rename internal func yaz_use_attribute_create --- src/solr.c | 2 +- src/sru-p.h | 2 +- src/srw.c | 2 +- src/srwutil.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; -- 1.7.10.4