Gitweb links:

...log 
http://git.netsurf-browser.org/libdom.git/shortlog/e88d4fca84e8fa8f9a6e830178a54e1912449e87
...commit 
http://git.netsurf-browser.org/libdom.git/commit/e88d4fca84e8fa8f9a6e830178a54e1912449e87
...tree 
http://git.netsurf-browser.org/libdom.git/tree/e88d4fca84e8fa8f9a6e830178a54e1912449e87

The branch, master has been updated
       via  e88d4fca84e8fa8f9a6e830178a54e1912449e87 (commit)
      from  7dd1e0193cb430622932b04a718df4784a02d201 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libdom.git/commit/?id=e88d4fca84e8fa8f9a6e830178a54e1912449e87
commit e88d4fca84e8fa8f9a6e830178a54e1912449e87
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    Attempt to fix m68k cross-compile warnings.

diff --git a/src/html/html_table_element.c b/src/html/html_table_element.c
index 58887ae..f197d07 100644
--- a/src/html/html_table_element.c
+++ b/src/html/html_table_element.c
@@ -740,7 +740,6 @@ dom_exception dom_html_table_element_insert_row(
                dom_html_element **row_out)
 {
        dom_exception exp;
-       dom_html_table_row_element *row;
        dom_html_collection* rows;
        uint32_t len;
        dom_html_document *doc = (dom_html_document *)
@@ -760,6 +759,7 @@ dom_exception dom_html_table_element_insert_row(
                exp = DOM_INDEX_SIZE_ERR;
        } else if(len == 0) {
                dom_html_table_section_element *new_body;
+               dom_html_table_row_element *row;
                dom_node *new_row;
 
                struct dom_html_element_create_params params = {
@@ -781,7 +781,8 @@ dom_exception dom_html_table_element_insert_row(
                        return exp;
                }
 
-               exp = dom_node_append_child(new_body, row, &new_row);
+               exp = dom_node_append_child(new_body, (dom_html_element *) row,
+                               &new_row);
                dom_node_unref(new_body);
                dom_node_unref(row);
                if(exp == DOM_NO_ERR) {
@@ -791,6 +792,7 @@ dom_exception dom_html_table_element_insert_row(
                uint32_t window_len = 0, section_len;
                dom_html_table_section_element *t_head;
                dom_html_table_section_element *t_foot;
+               dom_html_element *row;
                dom_node_internal *n;
 
                if(index ==-1) {
@@ -818,11 +820,10 @@ dom_exception dom_html_table_element_insert_row(
                if(window_len + section_len > (uint32_t)index ||
                                window_len + section_len == len) {
                        exp = dom_html_table_section_element_insert_row(t_head,
-                                       index-window_len,
-                                       (struct dom_html_element **)&row);
+                                       index-window_len, &row);
                        dom_node_unref(t_head);
                        if (exp == DOM_NO_ERR) {
-                               *row_out = (dom_html_element *)row;
+                               *row_out = row;
                        }
                        return exp;
                }
@@ -854,10 +855,9 @@ dom_exception dom_html_table_element_insert_row(
                                                window_len + section_len == 
len) {
                                        exp = 
dom_html_table_section_element_insert_row(
                                                        
(dom_html_table_section_element *)n,
-                                                       index-window_len,
-                                                       (struct 
dom_html_element **)&row);
+                                                       index-window_len, &row);
                                        if (exp == DOM_NO_ERR) {
-                                               *row_out = (dom_html_element 
*)row;
+                                               *row_out = row;
                                        }
                                        return exp;
                                }
@@ -886,11 +886,10 @@ dom_exception dom_html_table_element_insert_row(
                if(window_len + section_len > (uint32_t)index ||
                                window_len +section_len == len) {
                        exp = dom_html_table_section_element_insert_row(t_foot,
-                                       index-window_len,
-                                       (struct dom_html_element **)&row);
+                                       index-window_len, &row);
                        dom_node_unref(t_foot);
                        if (exp == DOM_NO_ERR) {
-                               *row_out = (dom_html_element *)row;
+                               *row_out = row;
                        }
                        return exp;
                }


-----------------------------------------------------------------------

Summary of changes:
 src/html/html_table_element.c |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/src/html/html_table_element.c b/src/html/html_table_element.c
index 58887ae..f197d07 100644
--- a/src/html/html_table_element.c
+++ b/src/html/html_table_element.c
@@ -740,7 +740,6 @@ dom_exception dom_html_table_element_insert_row(
                dom_html_element **row_out)
 {
        dom_exception exp;
-       dom_html_table_row_element *row;
        dom_html_collection* rows;
        uint32_t len;
        dom_html_document *doc = (dom_html_document *)
@@ -760,6 +759,7 @@ dom_exception dom_html_table_element_insert_row(
                exp = DOM_INDEX_SIZE_ERR;
        } else if(len == 0) {
                dom_html_table_section_element *new_body;
+               dom_html_table_row_element *row;
                dom_node *new_row;
 
                struct dom_html_element_create_params params = {
@@ -781,7 +781,8 @@ dom_exception dom_html_table_element_insert_row(
                        return exp;
                }
 
-               exp = dom_node_append_child(new_body, row, &new_row);
+               exp = dom_node_append_child(new_body, (dom_html_element *) row,
+                               &new_row);
                dom_node_unref(new_body);
                dom_node_unref(row);
                if(exp == DOM_NO_ERR) {
@@ -791,6 +792,7 @@ dom_exception dom_html_table_element_insert_row(
                uint32_t window_len = 0, section_len;
                dom_html_table_section_element *t_head;
                dom_html_table_section_element *t_foot;
+               dom_html_element *row;
                dom_node_internal *n;
 
                if(index ==-1) {
@@ -818,11 +820,10 @@ dom_exception dom_html_table_element_insert_row(
                if(window_len + section_len > (uint32_t)index ||
                                window_len + section_len == len) {
                        exp = dom_html_table_section_element_insert_row(t_head,
-                                       index-window_len,
-                                       (struct dom_html_element **)&row);
+                                       index-window_len, &row);
                        dom_node_unref(t_head);
                        if (exp == DOM_NO_ERR) {
-                               *row_out = (dom_html_element *)row;
+                               *row_out = row;
                        }
                        return exp;
                }
@@ -854,10 +855,9 @@ dom_exception dom_html_table_element_insert_row(
                                                window_len + section_len == 
len) {
                                        exp = 
dom_html_table_section_element_insert_row(
                                                        
(dom_html_table_section_element *)n,
-                                                       index-window_len,
-                                                       (struct 
dom_html_element **)&row);
+                                                       index-window_len, &row);
                                        if (exp == DOM_NO_ERR) {
-                                               *row_out = (dom_html_element 
*)row;
+                                               *row_out = row;
                                        }
                                        return exp;
                                }
@@ -886,11 +886,10 @@ dom_exception dom_html_table_element_insert_row(
                if(window_len + section_len > (uint32_t)index ||
                                window_len +section_len == len) {
                        exp = dom_html_table_section_element_insert_row(t_foot,
-                                       index-window_len,
-                                       (struct dom_html_element **)&row);
+                                       index-window_len, &row);
                        dom_node_unref(t_foot);
                        if (exp == DOM_NO_ERR) {
-                               *row_out = (dom_html_element *)row;
+                               *row_out = row;
                        }
                        return exp;
                }


-- 
Document Object Model library

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to