diff options
author | James Bursa <james@netsurf-browser.org> | 2004-05-05 16:33:15 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-05-05 16:33:15 +0000 |
commit | bb41604045cbabbf9aea502ccc9b0e9db50e6aa7 (patch) | |
tree | 73e84936444d0e418cf4c029b347e2205edd552a /content | |
parent | 9deb539031dbd92dc9caa45221e21a018fb2a570 (diff) | |
download | netsurf-bb41604045cbabbf9aea502ccc9b0e9db50e6aa7.tar.gz netsurf-bb41604045cbabbf9aea502ccc9b0e9db50e6aa7.tar.bz2 |
[project @ 2004-05-05 16:33:15 by bursa]
Fix some compiler warnings. Ignore size attribute for file inputs.
svn path=/import/netsurf/; revision=828
Diffstat (limited to 'content')
-rw-r--r-- | content/content.c | 4 | ||||
-rw-r--r-- | content/content.h | 4 | ||||
-rw-r--r-- | content/fetch.c | 2 | ||||
-rw-r--r-- | content/fetchcache.c | 1 |
4 files changed, 5 insertions, 6 deletions
diff --git a/content/content.c b/content/content.c index e8cfade5d..22c6f9904 100644 --- a/content/content.c +++ b/content/content.c @@ -219,8 +219,8 @@ struct content * content_create(char *url) * \param params array of strings, ordered attribute, value, attribute, ..., 0 */ -void content_set_type(struct content *c, content_type type, char* mime_type, - const char *params[]) +void content_set_type(struct content *c, content_type type, + const char *mime_type, const char *params[]) { union content_msg_data data; assert(c != 0); diff --git a/content/content.h b/content/content.h index b005da848..d3555f9ad 100644 --- a/content/content.h +++ b/content/content.h @@ -171,8 +171,8 @@ struct browser_window; content_type content_lookup(const char *mime_type); struct content * content_create(char *url); -void content_set_type(struct content *c, content_type type, char *mime_type, - const char *params[]); +void content_set_type(struct content *c, content_type type, + const char *mime_type, const char *params[]); void content_process_data(struct content *c, char *data, unsigned long size); void content_convert(struct content *c, unsigned long width, unsigned long height); void content_revive(struct content *c, unsigned long width, unsigned long height); diff --git a/content/fetch.c b/content/fetch.c index 35f19ca0f..c8630f343 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -599,7 +599,7 @@ size_t fetch_curl_data(void * data, size_t size, size_t nmemb, struct fetch *f) size_t fetch_curl_header(char * data, size_t size, size_t nmemb, struct fetch *f) { - int i; + unsigned int i; size *= nmemb; if (12 < size && strncasecmp(data, "Location:", 9) == 0) { /* extract Location header */ diff --git a/content/fetchcache.c b/content/fetchcache.c index f6fcb01f8..a56da83f9 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -79,7 +79,6 @@ struct content * fetchcache(const char *url, char *referer, struct content *c; char *url1 = xstrdup(url); char *hash = strchr(url1, '#'); - const char *params[] = { 0 }; char error_message[500]; /* strip fragment identifier */ |