summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-25 12:31:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:14 -0500
commit48c97988ca6703264721c6be435e6f616cdbdcb6 (patch)
tree4f2e144952bf46c2806e20f5c30958667a384cad
parenta2f3527d96a15aeac6ad41bcbd4935405da992c7 (diff)
downloadsamba-48c97988ca6703264721c6be435e6f616cdbdcb6.tar.gz
samba-48c97988ca6703264721c6be435e6f616cdbdcb6.tar.bz2
samba-48c97988ca6703264721c6be435e6f616cdbdcb6.zip
r2631: the strchr family of functions should not return const strings.
(This used to be commit 2a7e5f07086ef4aebbb2be35acbf9c7c39b13c75)
-rw-r--r--source4/lib/util_unistr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/util_unistr.c b/source4/lib/util_unistr.c
index a05df0983b..1d7d0de19a 100644
--- a/source4/lib/util_unistr.c
+++ b/source4/lib/util_unistr.c
@@ -221,7 +221,7 @@ size_t strnlen_w(const smb_ucs2_t *src, size_t max)
/*******************************************************************
wide strchr()
********************************************************************/
-const smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c)
+smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c)
{
while (*s != 0) {
if (c == *s) return s;
@@ -232,12 +232,12 @@ const smb_ucs2_t *strchr_w(const smb_ucs2_t *s, smb_ucs2_t c)
return NULL;
}
-const smb_ucs2_t *strchr_wa(const smb_ucs2_t *s, char c)
+smb_ucs2_t *strchr_wa(const smb_ucs2_t *s, char c)
{
return strchr_w(s, UCS2_CHAR(c));
}
-const smb_ucs2_t *strrchr_w(const smb_ucs2_t *s, smb_ucs2_t c)
+smb_ucs2_t *strrchr_w(const smb_ucs2_t *s, smb_ucs2_t c)
{
const smb_ucs2_t *p = s;
int len = strlen_w(s);