From: Daniel Silverstone Date: Sat, 3 Nov 2012 18:22:52 +0000 (+0000) Subject: Void myself unpleasantly in order to satisfy RISC OS toolchain X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=eb5d8ebefd4714b3f20ddd7551450f9e7604a9d1;p=libsvgtiny.git Void myself unpleasantly in order to satisfy RISC OS toolchain --- 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,