From a76404dfd076925eebeb8166f588e0d5e7a9fdd3 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Thu, 13 Jan 2005 20:29:24 +0000 Subject: [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 --- content/fetchcache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/fetchcache.c') 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 #include #include @@ -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)); -- cgit v1.2.3