Fix broken xml entity.
[idzebra-moved-to-github.git] / index / mod_grs_sgml.c
index 42a1a39..5dacbf3 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the Zebra server.
-   Copyright (C) 1994-2010 Index Data
+   Copyright (C) Index Data
 
 Zebra is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
@@ -18,6 +18,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
 
 
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <assert.h>
 #include <yaz/log.h>
 
@@ -37,7 +40,7 @@ int sgml_getc (void *clientData)
 {
     struct sgml_getc_info *p = (struct sgml_getc_info *) clientData;
     int res;
-    
+
     if (p->off < p->size)
        return p->buf[(p->off)++];
     if (p->size < p->buf_size)
@@ -59,7 +62,7 @@ static data1_node *grs_read_sgml (struct grs_read_info *p)
     struct sgml_getc_info *sgi = (struct sgml_getc_info *) p->clientData;
     data1_node *node;
     int res;
-    
+
     sgi->moffset = p->stream->tellf(p->stream);
     sgi->stream = p->stream;
     sgi->off = 0;
@@ -123,7 +126,7 @@ static struct recType grs_type_sgml =
 };
 
 RecType
-#ifdef IDZEBRA_STATIC_GRS_SGML
+#if IDZEBRA_STATIC_GRS_SGML
 idzebra_filter_grs_sgml
 #else
 idzebra_filter