summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2004-08-14 15:07:21 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2004-08-14 15:07:21 +0000
commit7264ae50e52050243d9723c47c395975e00b5e50 (patch)
tree43210eba9464a839d5cc5d76b1d60bfc7aaba467 /content/fetch.c
parent402c4ca66c7d95b1cdfc9eefbcb94947c807155b (diff)
downloadnetsurf-7264ae50e52050243d9723c47c395975e00b5e50.tar.gz
netsurf-7264ae50e52050243d9723c47c395975e00b5e50.tar.bz2
[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
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c5
1 files changed, 2 insertions, 3 deletions
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;