projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed unused variable
[yaz-moved-to-github.git]
/
src
/
marc_read_xml.c
diff --git
a/src/marc_read_xml.c
b/src/marc_read_xml.c
index
c4b2190
..
3615a6a
100644
(file)
--- a/
src/marc_read_xml.c
+++ b/
src/marc_read_xml.c
@@
-217,9
+217,9
@@
static int yaz_marc_read_xml_fields(yaz_marc_t mt, const xmlNode *ptr)
}
#endif
}
#endif
+#if YAZ_HAVE_XML2
int yaz_marc_read_xml(yaz_marc_t mt, const xmlNode *ptr)
{
int yaz_marc_read_xml(yaz_marc_t mt, const xmlNode *ptr)
{
-#if YAZ_HAVE_XML2
yaz_marc_reset(mt);
for(; ptr; ptr = ptr->next)
yaz_marc_reset(mt);
for(; ptr; ptr = ptr->next)
@@
-245,10
+245,8
@@
int yaz_marc_read_xml(yaz_marc_t mt, const xmlNode *ptr)
if (yaz_marc_read_xml_leader(mt, &ptr))
return -1;
return yaz_marc_read_xml_fields(mt, ptr->next);
if (yaz_marc_read_xml_leader(mt, &ptr))
return -1;
return yaz_marc_read_xml_fields(mt, ptr->next);
-#else
- return -1;
-#endif
}
}
+#endif
/*
/*