From 402c4ca66c7d95b1cdfc9eefbcb94947c807155b Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sat, 14 Aug 2004 14:30:12 +0000 Subject: [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 --- css/css.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'css') diff --git a/css/css.c b/css/css.c index 1446f9640..97779e62b 100644 --- a/css/css.c +++ b/css/css.c @@ -395,8 +395,8 @@ bool css_convert(struct content *c, int width, int height) current = source_data; end = source_data + c->source_size; - while (current < end && (token = css_tokenise(¤t, end + 10, - &token_text))) { + while (current < end + && (token = css_tokenise(¤t, end + 10, &token_text)) != NULL) { token_data.text = token_text; token_data.length = current - token_text; css_parser_(parser, token, token_data, ¶m); @@ -1207,8 +1207,8 @@ void css_parse_property_list(struct content *c, struct css_style * style, current = source_data; end = source_data + strlen(str); - while (current < end && (token = css_tokenise(¤t, end + 10, - &token_text))) { + while (current < end + && (token = css_tokenise(¤t, end + 10, &token_text)) != NULL) { token_data.text = token_text; token_data.length = current - token_text; css_parser_(parser, token, token_data, ¶m); -- cgit v1.2.3