summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.c4
-rw-r--r--content/content.h4
-rw-r--r--content/fetch.c2
-rw-r--r--content/fetchcache.c1
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 */