diff options
author | jbeich <jbeich@FreeBSD.org> | 2017-02-02 04:21:56 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2017-02-02 04:21:56 +0800 |
commit | 9e54223404b8d416d9911b64adc94911083df729 (patch) | |
tree | bd3e17076b398f385e3b7ce53ca3e2c2d4beb33b | |
parent | 9d8e74e73687435d606da7dbbab8e66a4fd5ca90 (diff) | |
download | freebsd-ports-gnome-9e54223404b8d416d9911b64adc94911083df729.tar.gz freebsd-ports-gnome-9e54223404b8d416d9911b64adc94911083df729.tar.zst freebsd-ports-gnome-9e54223404b8d416d9911b64adc94911083df729.zip |
www/squidpurge: unbreak with libc++ 3.9
copyout.cc:135:9: error: cannot initialize a variable of type 'char *' with an rvalue of type
'const char *'
char* ptr = strstr( url, "://" );
^ ~~~~~~~~~~~~~~~~~~~~
Reported by: pkg-fallout
-rw-r--r-- | www/squidpurge/files/patch-copyout.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/squidpurge/files/patch-copyout.cc b/www/squidpurge/files/patch-copyout.cc new file mode 100644 index 000000000000..d3a5a7d69e9b --- /dev/null +++ b/www/squidpurge/files/patch-copyout.cc @@ -0,0 +1,11 @@ +--- copyout.cc.orig 2000-09-21 13:05:31 UTC ++++ copyout.cc +@@ -132,7 +132,7 @@ copy_out( size_t filesize, size_t metasi + static const char* index = "index.html"; + + // find hostname part after the scheme (okok, not counting port, etc.) +- char* ptr = strstr( url, "://" ); ++ const char* ptr = strstr( url, "://" ); + if ( ptr == 0 || strlen(ptr) < 4 ) return false; + + // create filename to store contents into |