applied patch from Armin Sander to make some pointers const in
* tree.c: applied patch from Armin Sander to make some pointers
const in xmlCopyNode()
Daniel
diff --git a/ChangeLog b/ChangeLog
index 7996caa..dd95ff0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 28 22:38:45 CEST 2001 Daniel Veillard <daniel@veillard.com>
+
+ * tree.c: applied patch from Armin Sander to make some pointers
+ const in xmlCopyNode()
+
Mon Aug 27 16:24:47 CEST 2001 Daniel Veillard <daniel@veillard.com>
* xpath.c: hum, restrict the integer usage gcc bug workaround
diff --git a/tree.c b/tree.c
index 992f556..68d4592 100644
--- a/tree.c
+++ b/tree.c
@@ -2705,7 +2705,7 @@
xmlStaticCopyNodeList(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent);
static xmlNodePtr
-xmlStaticCopyNode(xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
+xmlStaticCopyNode(const xmlNodePtr node, xmlDocPtr doc, xmlNodePtr parent,
int recursive) {
xmlNodePtr ret;
@@ -2875,7 +2875,7 @@
* Returns: a new xmlNodePtr, or NULL in case of error.
*/
xmlNodePtr
-xmlCopyNode(xmlNodePtr node, int recursive) {
+xmlCopyNode(const xmlNodePtr node, int recursive) {
xmlNodePtr ret;
ret = xmlStaticCopyNode(node, NULL, NULL, recursive);
@@ -2892,7 +2892,7 @@
* Returns: a new xmlNodePtr, or NULL in case of error.
*/
xmlNodePtr
-xmlDocCopyNode(xmlNodePtr node, xmlDocPtr doc, int recursive) {
+xmlDocCopyNode(const xmlNodePtr node, xmlDocPtr doc, int recursive) {
xmlNodePtr ret;
ret = xmlStaticCopyNode(node, doc, NULL, recursive);
@@ -2907,7 +2907,7 @@
*
* Returns: a new xmlNodePtr, or NULL in case of error.
*/
-xmlNodePtr xmlCopyNodeList(xmlNodePtr node) {
+xmlNodePtr xmlCopyNodeList(const xmlNodePtr node) {
xmlNodePtr ret = xmlStaticCopyNodeList(node, NULL, NULL);
return(ret);
}