diff options
author | sbd <sbd@pkgsrc.org> | 2012-02-08 00:12:37 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-02-08 00:12:37 +0000 |
commit | 764d65f6ea3177b75040d738e432206f4234a382 (patch) | |
tree | e3de0a42ff8d9a09fc51799e16d312e5faaa96b7 /chat/kmess/patches/patch-kmess_prefix.cpp | |
parent | 336ba45857b2fb5863902b58d8fe70ab3cc9b315 (diff) | |
download | pkgsrc-764d65f6ea3177b75040d738e432206f4234a382.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/kmess/patches/patch-kmess_prefix.cpp')
-rw-r--r-- | chat/kmess/patches/patch-kmess_prefix.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
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); + |