From 7264ae50e52050243d9723c47c395975e00b5e50 Mon Sep 17 00:00:00 2001 From: John Tytgat Date: Sat, 14 Aug 2004 15:07:21 +0000 Subject: [project @ 2004-08-14 15:07:19 by joty] - Rename len() to css_len2px(). - Less compiler warnings concerning float/int implicit casts. - More stddef.h type usuage. svn path=/import/netsurf/; revision=1232 --- content/fetch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/fetch.c b/content/fetch.c index 1ea20a8a0..a468a05a9 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -863,11 +863,10 @@ bool fetch_can_fetch(const char *url) { unsigned int i; const char *semi; - unsigned int len; + size_t len; curl_version_info_data *data; - semi = strchr(url, ':'); - if (!semi) + if ((semi = strchr(url, ':')) == NULL) return false; len = semi - url; -- cgit v1.2.3