summaryrefslogtreecommitdiff
path: root/source4/lib/util_unistr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-08-15 18:54:44 +0000
committerAndrew Tridgell <tridge@samba.org>2003-08-15 18:54:44 +0000
commitde10237719db8101cd9487b257761d4721f857ab (patch)
tree7f315aa67f37c64626f881a94abc3d0d1da6e7e5 /source4/lib/util_unistr.c
parent8e4ab747b02207671203d40cd2a78692da78faef (diff)
downloadsamba-de10237719db8101cd9487b257761d4721f857ab.tar.gz
samba-de10237719db8101cd9487b257761d4721f857ab.tar.bz2
samba-de10237719db8101cd9487b257761d4721f857ab.zip
more fixes from the IRIX compiler (thanks herb!)
(This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025)
Diffstat (limited to 'source4/lib/util_unistr.c')
-rw-r--r--source4/lib/util_unistr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/lib/util_unistr.c b/source4/lib/util_unistr.c
index e5d2b8c3db..71a67eb159 100644
--- a/source4/lib/util_unistr.c
+++ b/source4/lib/util_unistr.c
@@ -383,10 +383,9 @@ wide strstr()
const smb_ucs2_t *strstr_w(const smb_ucs2_t *s, const smb_ucs2_t *ins)
{
const smb_ucs2_t *r;
- size_t slen, inslen;
+ size_t inslen;
if (!s || !*s || !ins || !*ins) return NULL;
- slen = strlen_w(s);
inslen = strlen_w(ins);
r = s;
while ((r = strchr_w(r, *ins))) {
@@ -663,10 +662,9 @@ const smb_ucs2_t *strpbrk_wa(const smb_ucs2_t *s, const char *p)
const smb_ucs2_t *strstr_wa(const smb_ucs2_t *s, const char *ins)
{
const smb_ucs2_t *r;
- size_t slen, inslen;
+ size_t inslen;
if (!s || !*s || !ins || !*ins) return NULL;
- slen = strlen_w(s);
inslen = strlen(ins);
r = s;
while ((r = strchr_w(r, UCS2_CHAR(*ins)))) {