pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/squidpurge Fix const correctness



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1a69585543cd
branches:  trunk
changeset: 426384:1a69585543cd
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Mar 30 19:35:19 2020 +0000

description:
Fix const correctness

diffstat:

 www/squidpurge/distinfo                 |   3 ++-
 www/squidpurge/patches/patch-copyout.cc |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 2e978aa359e5 -r 1a69585543cd www/squidpurge/distinfo
--- a/www/squidpurge/distinfo   Mon Mar 30 19:34:55 2020 +0000
+++ b/www/squidpurge/distinfo   Mon Mar 30 19:35:19 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2015/11/04 02:47:39 agc Exp $
+$NetBSD: distinfo,v 1.4 2020/03/30 19:35:19 joerg Exp $
 
 SHA1 (purge-20040201-src.tar.gz) = 9347ead8f1444c7c8d1828e0c8ff8bd0ca5e0891
 RMD160 (purge-20040201-src.tar.gz) = c98c146223d6322850e7203af2b074a40440184a
@@ -7,3 +7,4 @@
 SHA1 (patch-aa) = cb01736e19a00eaaec18c5e4f61b20ca1609eb1b
 SHA1 (patch-ab) = c461769a7eae2f249ec3b8acb4fe40b42f2f411b
 SHA1 (patch-ac) = d18823eca80d17a9c3768df5ffd515508b38f38c
+SHA1 (patch-copyout.cc) = 804ead27a304a197e2709779534b4056231849e5
diff -r 2e978aa359e5 -r 1a69585543cd www/squidpurge/patches/patch-copyout.cc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/squidpurge/patches/patch-copyout.cc   Mon Mar 30 19:35:19 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-copyout.cc,v 1.1 2020/03/30 19:35:19 joerg Exp $
+
+--- copyout.cc.orig    2020-03-29 22:39:59.674899981 +0000
++++ 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



Home | Main Index | Thread Index | Old Index