svn commit: samba r2631 - in branches/SAMBA_4_0/source/lib: .
tridge at samba.org
tridge at samba.org
Sat Sep 25 12:31:49 GMT 2004
Author: tridge
Date: 2004-09-25 12:31:49 +0000 (Sat, 25 Sep 2004)
New Revision: 2631
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib&rev=2631&nolog=1
Log:
the strchr family of functions should not return const strings.
Modified:
branches/SAMBA_4_0/source/lib/util_unistr.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/util_unistr.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util_unistr.c 2004-09-25 12:30:10 UTC (rev 2630)
+++ branches/SAMBA_4_0/source/lib/util_unistr.c 2004-09-25 12:31:49 UTC (rev 2631)
@@ -221,7 +221,7 @@
/*******************************************************************
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 @@
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);
More information about the samba-cvs
mailing list