applied patch from Geert Jansen to remove xmlBufferClose() which is not
* xmlIO.c: applied patch from Geert Jansen to remove xmlBufferClose()
which is not needed.
Daniel
diff --git a/xmlIO.c b/xmlIO.c
index f30f775..2610e25 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -882,19 +882,6 @@
return(-1);
return(len);
}
-
-/**
- * xmlBufferClose:
- * @context: the xmlBuffer
- *
- * Close a buffer
- *
- * Returns 0 or -1 in case of error
- */
-static int
-xmlBufferClose (void * context) {
- return(0);
-}
#endif
#ifdef HAVE_ZLIB_H
@@ -2493,8 +2480,7 @@
ret = xmlOutputBufferCreateIO((xmlOutputWriteCallback)
xmlBufferWrite,
(xmlOutputCloseCallback)
- xmlBufferClose,
- (void *) buffer, encoder);
+ NULL, (void *) buffer, encoder);
return(ret);
}