From 2837f0509464442a41c2c6b0782f4c58b8e6862c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 22 Sep 2011 20:45:38 +0000 Subject: [PATCH] nsurl_access must return const. svn path=/trunk/netsurf/; revision=12863 --- utils/nsurl.c | 2 +- utils/nsurl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/nsurl.c b/utils/nsurl.c index 1814b5485..5e7b1bc71 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -1182,7 +1182,7 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts, /* exported interface, documented in nsurl.h */ -char *nsurl_access(const nsurl *url, size_t *url_l) +const char *nsurl_access(const nsurl *url, size_t *url_l) { assert(url != NULL); diff --git a/utils/nsurl.h b/utils/nsurl.h index e53fca9bd..95e1698ef 100644 --- a/utils/nsurl.h +++ b/utils/nsurl.h @@ -136,7 +136,7 @@ nserror nsurl_get(const nsurl *url, nsurl_component parts, * * The length returned in url_l excludes the trailing '\0'. */ -char *nsurl_access(const nsurl *url, size_t *url_l); +const char *nsurl_access(const nsurl *url, size_t *url_l); /**