summaryrefslogtreecommitdiff
path: root/src/html/html_body_element.c
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2012-03-24 09:41:34 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2012-03-24 09:41:34 +0000
commit81c06a1c10903aaaab877945208825c7244e7b7a (patch)
treea4be6838c3ffd1b837f743db4a8e505520adac03 /src/html/html_body_element.c
parent8a96fb5802b83e5194e538017ff106014712715f (diff)
downloadlibdom-81c06a1c10903aaaab877945208825c7244e7b7a.tar.gz
libdom-81c06a1c10903aaaab877945208825c7244e7b7a.tar.bz2
C89 for BeOS build.
svn path=/trunk/libdom/; revision=13581
Diffstat (limited to 'src/html/html_body_element.c')
-rw-r--r--src/html/html_body_element.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/html/html_body_element.c b/src/html/html_body_element.c
index e1a6751..8c790b4 100644
--- a/src/html/html_body_element.c
+++ b/src/html/html_body_element.c
@@ -29,12 +29,14 @@ static struct dom_element_protected_vtable _protect_vtable = {
dom_exception _dom_html_body_element_create(struct dom_html_document *doc,
struct dom_html_body_element **ele)
{
+ struct dom_node_internal *node;
+
*ele = malloc(sizeof(dom_html_body_element));
if (*ele == NULL)
return DOM_NO_MEM_ERR;
/* Set up vtables */
- struct dom_node_internal *node = (struct dom_node_internal *) *ele;
+ node = (struct dom_node_internal *) *ele;
node->base.vtable = &_dom_element_vtable;
node->vtable = &_protect_vtable;