From 60fa9058b47df51d7ca169c3c75b72988d345119 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Thu, 6 Jul 2006 14:06:17 +0000 Subject: [PATCH] Fixed order of declarations --- src/nfaxml.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nfaxml.c b/src/nfaxml.c index c72b8f3..84a8b0b 100644 --- a/src/nfaxml.c +++ b/src/nfaxml.c @@ -1,7 +1,7 @@ /* Copyright (C) 2006, Index Data ApS * See the file LICENSE for details. * - * $Id: nfaxml.c,v 1.7 2006-07-06 13:10:31 heikki Exp $ + * $Id: nfaxml.c,v 1.8 2006-07-06 14:06:17 heikki Exp $ */ /** @@ -29,7 +29,7 @@ */ yaz_nfa *yaz_nfa_parse_xml_doc(xmlDocPtr doc) { - libxml2_error_to_yazlog(YLOG_FATAL, "yaz_nfa_parse_xml_file"); + libxml2_error_to_yazlog(YLOG_FATAL, "yaz_nfa_parse_doc"); if (!doc) return 0; @@ -43,9 +43,10 @@ yaz_nfa *yaz_nfa_parse_xml_doc(xmlDocPtr doc) yaz_nfa *yaz_nfa_parse_xml_file(const char *filepath) { int nSubst; + xmlDocPtr doc; libxml2_error_to_yazlog(YLOG_FATAL, "yaz_nfa_parse_xml_file"); - xmlDocPtr doc = xmlParseFile(filepath); + doc = xmlParseFile(filepath); if (!doc) { return 0; } @@ -59,10 +60,9 @@ yaz_nfa *yaz_nfa_parse_xml_file(const char *filepath) { /** \brief Parse the NFA from a memory buffer */ yaz_nfa *yaz_nfa_parse_xml_memory(const char *xmlbuff) { - int nSubst; - + xmlDocPtr doc; libxml2_error_to_yazlog(YLOG_FATAL, "yaz_nfa_parse_xml_memory"); - xmlDocPtr doc = xmlParseMemory(xmlbuff, strlen(xmlbuff)); + doc = xmlParseMemory(xmlbuff, strlen(xmlbuff)); return yaz_nfa_parse_xml_doc(doc); } -- 1.7.10.4