From: Adam Dickmeiss Date: Mon, 19 Sep 2011 13:20:55 +0000 (+0200) Subject: Move declaration X-Git-Tag: v1.6.3~13^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=29f5e5ad951fbb586f49b5f62b7638e4846d5c6b;p=pazpar2-moved-to-github.git Move declaration --- diff --git a/src/pazpar2_config.c b/src/pazpar2_config.c index 8a7b651..b766b7f 100644 --- a/src/pazpar2_config.c +++ b/src/pazpar2_config.c @@ -263,7 +263,6 @@ static int parse_metadata(struct conf_service *service, xmlNode *n, enum conf_metadata_type type = Metadata_type_generic; enum conf_metadata_merge merge = Metadata_merge_no; enum conf_setting_type setting = Metadata_setting_no; - enum conf_sortkey_type sk_type = Metadata_sortkey_relevance; enum conf_metadata_mergekey mergekey_type = Metadata_mergekey_no; int brief = 0; int termlist = 0; @@ -405,6 +404,7 @@ static int parse_metadata(struct conf_service *service, xmlNode *n, // add a sortkey if so specified if (xml_sortkey && strcmp((const char *) xml_sortkey, "no")) { + enum conf_sortkey_type sk_type; if (merge == Metadata_merge_no) { yaz_log(YLOG_FATAL,