From 29a73604ea2535d2f71b906dfddf6ce35f91194b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 23 Sep 2007 01:30:34 +0000 Subject: Fix compilation errors. It helps if you compile things before committing them... svn path=/trunk/dom/; revision=3583 --- src/core/attr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/attr.c b/src/core/attr.c index 55d06a4..31c9d94 100644 --- a/src/core/attr.c +++ b/src/core/attr.c @@ -8,6 +8,7 @@ #include #include +#include #include #include "core/attr.h" @@ -204,12 +205,12 @@ dom_exception dom_attr_set_value(struct dom_attr *attr, return DOM_NO_MODIFICATION_ALLOWED_ERR; /* Create text node containing new value */ - err = dom_document_create_text_node(attr->owner, value, &text); + err = dom_document_create_text_node(a->owner, value, &text); if (err != DOM_NO_ERR) return err; /* Destroy children of this node */ - for (c = attr->first_child; c != NULL; c = d) { + for (c = a->first_child; c != NULL; c = d) { d = c->next; /* Detach child */ @@ -231,8 +232,8 @@ dom_exception dom_attr_set_value(struct dom_attr *attr, } /* And insert the text node as the value */ - text->parent = a; - a->first_child = a->last_child = text; + ((struct dom_node *) text)->parent = a; + a->first_child = a->last_child = (struct dom_node *) text; return DOM_NO_ERR; } -- cgit v1.2.3