X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fpquery.c;h=60e12240f32ff19bbcff781092ef8103df386257;hp=bd0671ad3ccfcce3973361e400eba1db5674c394;hb=665fb4d99b4cd1cf7cbd47f9bf289559e8a545cc;hpb=3236c79e8d4287738236a804fe887ce4094fc9e9 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));