diff options
author | John Tytgat <joty@netsurf-browser.org> | 2004-08-14 14:30:12 +0000 |
---|---|---|
committer | John Tytgat <joty@netsurf-browser.org> | 2004-08-14 14:30:12 +0000 |
commit | 402c4ca66c7d95b1cdfc9eefbcb94947c807155b (patch) | |
tree | dbc42a5d9357d6c03d6c479bf6792754116f8adb /render/html.c | |
parent | 7d3a242132eedadbcb96bead6dbed64729d11aaf (diff) | |
download | netsurf-402c4ca66c7d95b1cdfc9eefbcb94947c807155b.tar.gz netsurf-402c4ca66c7d95b1cdfc9eefbcb94947c807155b.tar.bz2 |
[project @ 2004-08-14 14:30:10 by joty]
Removed a chunk of Norcroft compiler warnings. Re-ident some pieces.
svn path=/import/netsurf/; revision=1231
Diffstat (limited to 'render/html.c')
-rw-r--r-- | render/html.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/render/html.c b/render/html.c index f71182079..d3e359f85 100644 --- a/render/html.c +++ b/render/html.c @@ -386,7 +386,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) if (strcmp(node->name, "link") == 0) { /* rel='stylesheet' */ - if (!(rel = (char *) xmlGetProp(node, (const xmlChar *) "rel"))) + if ((rel = (char *) xmlGetProp(node, (const xmlChar *) "rel")) == NULL) continue; if (strcasecmp(rel, "stylesheet") != 0) { xmlFree(rel); @@ -395,7 +395,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) xmlFree(rel); /* type='text/css' or not present */ - if ((type = (char *) xmlGetProp(node, (const xmlChar *) "type"))) { + if ((type = (char *) xmlGetProp(node, (const xmlChar *) "type")) != NULL) { if (strcmp(type, "text/css") != 0) { xmlFree(type); continue; @@ -404,7 +404,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) } /* media contains 'screen' or 'all' or not present */ - if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media"))) { + if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) { if (strstr(media, "screen") == 0 && strstr(media, "all") == 0) { xmlFree(media); @@ -414,7 +414,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) } /* href='...' */ - if (!(href = (char *) xmlGetProp(node, (const xmlChar *) "href"))) + if ((href = (char *) xmlGetProp(node, (const xmlChar *) "href")) == NULL) continue; /* TODO: only the first preferred stylesheets (ie. those with a @@ -447,7 +447,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) } else if (strcmp(node->name, "style") == 0) { /* type='text/css', or not present (invalid but common) */ - if ((type = (char *) xmlGetProp(node, (const xmlChar *) "type"))) { + if ((type = (char *) xmlGetProp(node, (const xmlChar *) "type")) != NULL) { if (strcmp(type, "text/css") != 0) { xmlFree(type); continue; @@ -456,7 +456,7 @@ void html_find_stylesheets(struct content *c, xmlNode *head) } /* media contains 'screen' or 'all' or not present */ - if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media"))) { + if ((media = (char *) xmlGetProp(node, (const xmlChar *) "media")) != NULL) { if (strstr(media, "screen") == 0 && strstr(media, "all") == 0) { xmlFree(media); |