From 665fb4d99b4cd1cf7cbd47f9bf289559e8a545cc Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 18 May 2011 10:44:57 +0200 Subject: [PATCH] Rename define FACET_DElIMITER->FACET_DELIMITER --- src/pquery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); -- 1.7.10.4