summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorsbd <sbd>2012-02-08 00:12:37 +0000
committersbd <sbd>2012-02-08 00:12:37 +0000
commit1d39d08a62078deeed9c1d54b37701efe4a7062a (patch)
treee3de0a42ff8d9a09fc51799e16d312e5faaa96b7 /chat
parent63f8be4030fefd38a87bebb7e60fca3939925e1d (diff)
downloadpkgsrc-1d39d08a62078deeed9c1d54b37701efe4a7062a.tar.gz
Comply the the C++ spec by making a variable that is assigned the result
of a strchr(const char *, int c) call a constant.
Diffstat (limited to 'chat')
-rw-r--r--chat/kmess/distinfo3
-rw-r--r--chat/kmess/patches/patch-kmess_prefix.cpp24
2 files changed, 26 insertions, 1 deletions
diff --git a/chat/kmess/distinfo b/chat/kmess/distinfo
index ca504b555f6..dc0c9a997f8 100644
--- a/chat/kmess/distinfo
+++ b/chat/kmess/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2011/11/25 21:33:11 joerg Exp $
+$NetBSD: distinfo,v 1.10 2012/02/08 00:12:37 sbd Exp $
SHA1 (kmess-1.4.3.tar.gz) = 1613c65c7b9ffaa6a1f55396297d25ab7ee3103d
RMD160 (kmess-1.4.3.tar.gz) = 280bab4275903389d2f7d5b3884df937a83addf7
@@ -6,3 +6,4 @@ Size (kmess-1.4.3.tar.gz) = 1869940 bytes
SHA1 (patch-aa) = 098da7e84f8b1eb70815949dca210184c91da6aa
SHA1 (patch-ab) = 90a3f7af4e2ded731b233b87e075e1df10709828
SHA1 (patch-af) = 1fb15e95b763089386adcdd500636f3e2fc16e09
+SHA1 (patch-kmess_prefix.cpp) = a0a1bba175df79f5d370d9ddc7c6b5fe0a7c4a47
diff --git a/chat/kmess/patches/patch-kmess_prefix.cpp b/chat/kmess/patches/patch-kmess_prefix.cpp
new file mode 100644
index 00000000000..8cf7fb691ad
--- /dev/null
+++ b/chat/kmess/patches/patch-kmess_prefix.cpp
@@ -0,0 +1,24 @@
+$NetBSD: patch-kmess_prefix.cpp,v 1.1 2012/02/08 00:12:37 sbd Exp $
+
+--- kmess/prefix.cpp.orig 2005-07-18 19:50:16.000000000 +0000
++++ kmess/prefix.cpp
+@@ -393,7 +393,8 @@ br_strndup (char *str, size_t size)
+ char *
+ br_extract_dir (const char *path)
+ {
+- char *end, *result;
++ const char *end;
++ char *result;
+
+ br_return_val_if_fail (path != (char *) NULL, (char *) NULL);
+
+@@ -428,7 +429,8 @@ br_extract_dir (const char *path)
+ char *
+ br_extract_prefix (const char *path)
+ {
+- char *end, *tmp, *result;
++ const char *end;
++ char *tmp, *result;
+
+ br_return_val_if_fail (path != (char *) NULL, (char *) NULL);
+