diff options
author | James Bursa <james@netsurf-browser.org> | 2005-01-13 20:29:24 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2005-01-13 20:29:24 +0000 |
commit | a76404dfd076925eebeb8166f588e0d5e7a9fdd3 (patch) | |
tree | def5a2c0dfcfc059c4b13ee8ebe30fc2507fa5d9 /content/fetchcache.c | |
parent | 2f19e15e33b57342ba98d81711650387e461b41b (diff) | |
download | netsurf-a76404dfd076925eebeb8166f588e0d5e7a9fdd3.tar.gz netsurf-a76404dfd076925eebeb8166f588e0d5e7a9fdd3.tar.bz2 |
[project @ 2005-01-13 20:28:50 by bursa]
Fix some compilation warnings in the debug build. Update nsgtk_plot_rectangle() with the new parameters.
svn path=/import/netsurf/; revision=1447
Diffstat (limited to 'content/fetchcache.c')
-rw-r--r-- | content/fetchcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/fetchcache.c b/content/fetchcache.c index c93b6fe73..bd20d12a3 100644 --- a/content/fetchcache.c +++ b/content/fetchcache.c @@ -13,6 +13,7 @@ * fetch changes and data is received, the content is updated appropriately. */ +#define _GNU_SOURCE /* for strndup */ #include <assert.h> #include <string.h> #include <sys/types.h> @@ -79,7 +80,7 @@ struct content * fetchcache(const char *url, /* strip fragment identifier */ if ((hash = strchr(url1, '#')) != NULL) - *hash = NULL; + *hash = 0; LOG(("url %s", url1)); |