summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/svgtiny.c5
-rw-r--r--src/svgtiny_gradient.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c
index 0dd5028..fd8c66d 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -263,7 +263,7 @@ svgtiny_code svgtiny_parse_svg(dom_element *svg,
svgtiny_parse_transform_attributes(svg, &state);
- exc = dom_node_get_first_child(svg, &child);
+ exc = dom_node_get_first_child(svg, (dom_node **) (void *) &child);
if (exc != DOM_NO_ERR) {
return svgtiny_LIBDOM_ERROR;
}
@@ -323,7 +323,8 @@ svgtiny_code svgtiny_parse_svg(dom_element *svg,
dom_node_unref(child);
return code;
}
- exc = dom_node_get_next_sibling(child, &next);
+ exc = dom_node_get_next_sibling(child,
+ (dom_node **) (void *) &next);
dom_node_unref(child);
if (exc != DOM_NO_ERR) {
return svgtiny_LIBDOM_ERROR;
diff --git a/src/svgtiny_gradient.c b/src/svgtiny_gradient.c
index 19f7f1f..06e63c4 100644
--- a/src/svgtiny_gradient.c
+++ b/src/svgtiny_gradient.c
@@ -188,7 +188,8 @@ svgtiny_code svgtiny_parse_linear_gradient(dom_element *linear,
dom_element *stop;
float offset = -1;
svgtiny_colour color = svgtiny_TRANSPARENT;
- exc = dom_nodelist_item(stops, stopnr, &stop);
+ exc = dom_nodelist_item(stops, stopnr,
+ (dom_node **) (void *) &stop);
if (exc != DOM_NO_ERR)
continue;
exc = dom_element_get_attribute(stop,