]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Void myself unpleasantly in order to satisfy RISC OS toolchain
authorDaniel Silverstone <dsilvers@digital-scurf.org>
Sat, 3 Nov 2012 18:22:52 +0000 (18:22 +0000)
committerDaniel Silverstone <dsilvers@digital-scurf.org>
Sat, 3 Nov 2012 18:22:52 +0000 (18:22 +0000)
src/svgtiny.c
src/svgtiny_gradient.c

index 0dd50289bad7ccfeb56887b2f94a9cf93443afe3..fd8c66d75770dddd05d6654f4761006729264fcd 100644 (file)
@@ -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;
index 19f7f1f5cd0e048404cd409789fe722b69b2d191..06e63c49810c456d2a0bab143aada04ec63af11d 100644 (file)
@@ -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,