pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/aegis Mark const cast appropiately.
details: https://anonhg.NetBSD.org/pkgsrc/rev/0d2b9082ecc3
branches: trunk
changeset: 413334:0d2b9082ecc3
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Mar 18 17:46:18 2020 +0000
description:
Mark const cast appropiately.
diffstat:
devel/aegis/distinfo | 3 ++-
devel/aegis/patches/patch-common_ac_string_memmem.cc | 13 +++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (32 lines):
diff -r 5ca639dde72b -r 0d2b9082ecc3 devel/aegis/distinfo
--- a/devel/aegis/distinfo Wed Mar 18 17:45:25 2020 +0000
+++ b/devel/aegis/distinfo Wed Mar 18 17:46:18 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2015/11/03 03:27:13 agc Exp $
+$NetBSD: distinfo,v 1.14 2020/03/18 17:46:18 joerg Exp $
SHA1 (aegis-4.24.2.tar.gz) = 3051a4272cfb3d1dcadec0234a5cd06a3d96e36b
RMD160 (aegis-4.24.2.tar.gz) = 3bbf6d29295d04313ab8e2a7cb2d80464c338c6b
@@ -7,4 +7,5 @@
SHA1 (patch-aa) = 90ca2d4c6e42588b52133a8772cb658608fe43b2
SHA1 (patch-ab) = c946cdfd7807041502f8052b0e9ec2d24f752175
SHA1 (patch-ad) = 3385dc23da50afc6827664c8d481ba89ba3fd435
+SHA1 (patch-common_ac_string_memmem.cc) = ef0461be5b90efaf8b39b2116f839c25aa865663
SHA1 (patch-common_stack.cc) = 83451680c73027fe69b85e0fd3333642d340a750
diff -r 5ca639dde72b -r 0d2b9082ecc3 devel/aegis/patches/patch-common_ac_string_memmem.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/aegis/patches/patch-common_ac_string_memmem.cc Wed Mar 18 17:46:18 2020 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-common_ac_string_memmem.cc,v 1.1 2020/03/18 17:46:18 joerg Exp $
+
+--- common/ac/string/memmem.cc.orig 2020-03-18 14:02:19.961788638 +0000
++++ common/ac/string/memmem.cc
+@@ -182,7 +182,7 @@ memmem_replacement(const void *haystack_
+
+ // Use optimizations in memchr when possible.
+ if (needle_len == 1)
+- return memchr(haystack, *needle, haystack_len);
++ return const_cast<void *>(memchr(haystack, *needle, haystack_len));
+
+ // Minimizing the worst-case complexity:
+ // Let n = haystack_len, m = needle_len.
Home |
Main Index |
Thread Index |
Old Index