From: Adam Dickmeiss Date: Mon, 3 Feb 2014 13:49:38 +0000 (+0100) Subject: Rename service_add_metadata to count_metadata X-Git-Tag: v1.6.39~8 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=82d7d0c694b86d3e4ca429d47624ea0f8bc19b91;p=pazpar2-moved-to-github.git Rename service_add_metadata to count_metadata --- diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 902c0e6..1aef7b4 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -513,7 +513,7 @@ static int parse_metadata(struct conf_service *service, xmlNode *n, } -static void service_add_metadata(xmlNode *n, int *num_metadata, int *num_sortkeys) +static void count_metadata(xmlNode *n, int *num_metadata, int *num_sortkeys) { xmlChar *sortkey = xmlGetProp(n, (xmlChar *) "sortkey"); (*num_metadata)++; @@ -549,11 +549,11 @@ static struct conf_service *service_create_static(struct conf_server *server, { if (m->type == XML_ELEMENT_NODE && !strcmp((const char *) m->name, "metadata")) - service_add_metadata(m, &num_metadata, &num_sortkeys); + count_metadata(m, &num_metadata, &num_sortkeys); } } else // This is a metadata-element proper, count it right away. - service_add_metadata(n, &num_metadata, &num_sortkeys); + count_metadata(n, &num_metadata, &num_sortkeys); } service = service_init(server, num_metadata, num_sortkeys, service_id);