diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-25 17:58:00 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-02-25 17:58:00 +0000 |
commit | 1cf46a6792a9e243edb857e131e44338bcbbd341 (patch) | |
tree | 9d145155307f4bc19746e486c7cd49ef897a49a1 /render/imagemap.c | |
parent | 674591f63df9c9b1e8e02aef4992a24b39cda0fc (diff) | |
download | netsurf-1cf46a6792a9e243edb857e131e44338bcbbd341.tar.gz netsurf-1cf46a6792a9e243edb857e131e44338bcbbd341.tar.bz2 |
SignednessWarnings.squash()
Aside from a number of instances of const being cast away (mostly relating to the urldb, which is correct to only export const data) this now builds warning-free with GCC 4 on x86, which is nice.
svn path=/trunk/netsurf/; revision=3868
Diffstat (limited to 'render/imagemap.c')
-rw-r--r-- | render/imagemap.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/render/imagemap.c b/render/imagemap.c index 399cd6225..852af6213 100644 --- a/render/imagemap.c +++ b/render/imagemap.c @@ -247,11 +247,11 @@ bool imagemap_extract(xmlNode *node, struct content *c) assert(c != NULL); if (node->type == XML_ELEMENT_NODE) { - if (strcmp(node->name, "map") == 0) { - if ((name = (char *)xmlGetProp(node, - (const xmlChar *)"id")) == NULL) { - if ((name = (char *)xmlGetProp(node, - (const xmlChar *)"name")) == + if (strcmp((const char *) node->name, "map") == 0) { + if ((name = (char *) xmlGetProp(node, + (const xmlChar *) "id")) == NULL) { + if ((name = (char *) xmlGetProp(node, + (const xmlChar *) "name")) == NULL) return true; } @@ -306,8 +306,8 @@ bool imagemap_extract_map(xmlNode *node, struct content *c, /** \todo ignore <area> elements if there are other * block-level elements present in map */ - if (strcmp(node->name, "area") == 0 || - strcmp(node->name, "a") == 0) { + if (strcmp((const char *) node->name, "area") == 0 || + strcmp((const char *) node->name, "a") == 0) { return imagemap_addtolist(node, c->data.html.base_url, entry); } @@ -341,7 +341,7 @@ bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry) assert(base_url != NULL); assert(entry != NULL); - if (strcmp(n->name, "area") == 0) { + if (strcmp((const char *) n->name, "area") == 0) { /* nohref attribute present - ignore this entry */ if (xmlGetProp(n, (const xmlChar*)"nohref") != 0) { return true; |