diff options
author | James Bursa <james@netsurf-browser.org> | 2003-03-04 11:59:36 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-03-04 11:59:36 +0000 |
commit | e2efda19df7a52f11a9c9ed421ac34e6804b30d4 (patch) | |
tree | 1ffb2ecc19d9415438f5aefdbb5e6902f69093ba /content | |
parent | 64e1781eb4c0d007801ea894cb3c0967a8aecbbd (diff) | |
download | netsurf-e2efda19df7a52f11a9c9ed421ac34e6804b30d4.tar.gz netsurf-e2efda19df7a52f11a9c9ed421ac34e6804b30d4.tar.bz2 |
[project @ 2003-03-04 11:59:35 by bursa]
More compiler warning fixes.
svn path=/import/netsurf/; revision=104
Diffstat (limited to 'content')
-rw-r--r-- | content/cache.c | 4 | ||||
-rw-r--r-- | content/cache.h | 4 | ||||
-rw-r--r-- | content/fetchcache.c | 8 | ||||
-rw-r--r-- | content/fetchcache.h | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/content/cache.c b/content/cache.c index 30a39053b..f9dd4e4f5 100644 --- a/content/cache.c +++ b/content/cache.c @@ -1,5 +1,5 @@ /** - * $Id: cache.c,v 1.1 2003/02/09 12:58:14 bursa Exp $ + * $Id: cache.c,v 1.2 2003/03/04 11:59:35 bursa Exp $ */ #include <assert.h> @@ -67,7 +67,7 @@ void cache_quit(void) * cache_get -- retrieve url from memory cache or disc cache */ -struct content * cache_get(char * const url) +struct content * cache_get(const char * const url) { struct cache_entry *e; diff --git a/content/cache.h b/content/cache.h index 2ee4e3b81..a1c681507 100644 --- a/content/cache.h +++ b/content/cache.h @@ -1,5 +1,5 @@ /** - * $Id: cache.h,v 1.1 2003/02/09 12:58:14 bursa Exp $ + * $Id: cache.h,v 1.2 2003/03/04 11:59:35 bursa Exp $ */ /** @@ -30,7 +30,7 @@ struct cache_entry; void cache_init(void); void cache_quit(void); -struct content * cache_get(char * const url); +struct content * cache_get(const char * const url); void cache_put(struct content * content); void cache_free(struct content * content); void cache_dump(void); diff --git a/content/fetchcache.c b/content/fetchcache.c index b950da093..8def6956f 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -1,5 +1,5 @@ /** - * $Id: fetchcache.c,v 1.3 2003/02/28 11:49:13 bursa Exp $ + * $Id: fetchcache.c,v 1.4 2003/03/04 11:59:35 bursa Exp $ */ #include <assert.h> @@ -22,11 +22,11 @@ struct fetchcache { }; -void fetchcache_free(struct fetchcache *fc); -void fetchcache_callback(fetchcache_msg msg, void *p, char *data, unsigned long size); +static void fetchcache_free(struct fetchcache *fc); +static void fetchcache_callback(fetchcache_msg msg, void *p, char *data, unsigned long size); -void fetchcache(char *url, char *referer, +void fetchcache(const char *url, char *referer, void (*callback)(fetchcache_msg msg, struct content *c, void *p, const char *error), void *p, unsigned long width, unsigned long height) { diff --git a/content/fetchcache.h b/content/fetchcache.h index 37fa8176b..d8986002a 100644 --- a/content/fetchcache.h +++ b/content/fetchcache.h @@ -1,5 +1,5 @@ /** - * $Id: fetchcache.h,v 1.2 2003/02/28 11:49:13 bursa Exp $ + * $Id: fetchcache.h,v 1.3 2003/03/04 11:59:35 bursa Exp $ */ #ifndef _NETSURF_DESKTOP_FETCHCACHE_H_ @@ -9,7 +9,7 @@ typedef enum {FETCHCACHE_OK, FETCHCACHE_BADTYPE, FETCHCACHE_ERROR, FETCHCACHE_STATUS} fetchcache_msg; -void fetchcache(char *url, char *referer, +void fetchcache(const char *url, char *referer, void (*callback)(fetchcache_msg msg, struct content *c, void *p, const char *error), void *p, unsigned long width, unsigned long height); |