Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 20:21:56 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433096 - head/www/squidpurge/files
Message-ID:  <201702012021.v11KLu0D068815@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Wed Feb  1 20:21:56 2017
New Revision: 433096
URL: https://svnweb.freebsd.org/changeset/ports/433096

Log:
  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

Added:
  head/www/squidpurge/files/patch-copyout.cc   (contents, props changed)

Added: head/www/squidpurge/files/patch-copyout.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/squidpurge/files/patch-copyout.cc	Wed Feb  1 20:21:56 2017	(r433096)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702012021.v11KLu0D068815>