diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-11-15 11:40:40 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-11-15 11:40:40 +0000 |
commit | 87fdebb534a6939674ca7feddf66415d4d40a3aa (patch) | |
tree | b869422408c41b296e14778f9a0402d6108a8ef6 | |
parent | 388acaba4017b621ffc1cf858f97228f85e16aa7 (diff) | |
download | netsurf-87fdebb534a6939674ca7feddf66415d4d40a3aa.tar.gz netsurf-87fdebb534a6939674ca7feddf66415d4d40a3aa.tar.bz2 |
Squash warnings.
svn path=/trunk/netsurf/; revision=13148
-rw-r--r-- | desktop/tree_url_node.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/desktop/tree_url_node.c b/desktop/tree_url_node.c index fee361b85..380ba43b9 100644 --- a/desktop/tree_url_node.c +++ b/desktop/tree_url_node.c @@ -499,7 +499,8 @@ static void tree_url_load_entry(xmlNode *li, struct tree *tree, /* The li must contain an "a" element */ if (xmlnode->type == XML_ELEMENT_NODE && strcmp((const char *)xmlnode->name, "a") == 0) { - url1 = (char *)xmlGetProp(xmlnode, (const xmlChar *) "href"); + url1 = (char *)xmlGetProp(xmlnode, + (const xmlChar *) "href"); title = (char *)xmlNodeGetContent(xmlnode); } } @@ -616,7 +617,8 @@ static void tree_url_load_directory(xmlNode *ul, struct tree *tree, "<ul> not present.)"); return; } else { - id = xmlGetProp(xmlnode, "id"); + id = xmlGetProp(xmlnode, + (const xmlChar *) "id"); if (id != NULL) { if(strcmp((const char *)id, "default") == 0) dir_is_default = true; @@ -752,7 +754,8 @@ static bool tree_url_save_directory(struct node *directory, xmlNode *node) if (ul == NULL) return false; if (tree_node_is_default(directory) == true) - xmlSetProp(ul, "id", "default"); + xmlSetProp(ul, (const xmlChar *) "id", + (const xmlChar *) "default"); for (child = tree_node_get_child(directory); child; child = tree_node_get_next(child)) { |