From: Adam Dickmeiss Date: Wed, 18 May 2011 08:44:57 +0000 (+0200) Subject: Rename define FACET_DElIMITER->FACET_DELIMITER X-Git-Tag: v4.2.0~3 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=665fb4d99b4cd1cf7cbd47f9bf289559e8a545cc Rename define FACET_DElIMITER->FACET_DELIMITER --- diff --git a/src/pquery.c b/src/pquery.c index bd0671a..60e1224 100644 --- a/src/pquery.c +++ b/src/pquery.c @@ -852,14 +852,14 @@ static Z_FacetField* parse_facet(ODR odr, const char *facet, int length) return facet_field; } -#define FACET_DElIMITER ',' +#define FACET_DELIMITER ',' static int scan_facet_argument(const char *arg) { int index; int length = strlen(arg); int count = 1; for (index = 0; index < length; index++) { - if (arg[index] == FACET_DElIMITER) + if (arg[index] == FACET_DELIMITER) count++; } return count; @@ -882,7 +882,7 @@ Z_FacetList *yaz_pqf_parse_facet_list(ODR odr, const char *facet) { elements = odr_malloc(odr, num_elements * sizeof(*elements)); facet_list->elements = elements; for (index = 0; index < num_elements;) { - const char *pos = strchr(facet, FACET_DElIMITER); + const char *pos = strchr(facet, FACET_DELIMITER); if (pos == 0) pos = facet + strlen(facet); elements[index] = parse_facet(odr, (const char *) facet, (pos - facet));