mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Add some const to try and get less warnings.
Andrew Bartlett
This commit is contained in:
parent
6465c6727b
commit
2a3d821c77
@ -826,7 +826,8 @@ return a new allocate unicode string.
|
||||
smb_ucs2_t *all_string_sub_w(const smb_ucs2_t *s, const smb_ucs2_t *pattern,
|
||||
const smb_ucs2_t *insert)
|
||||
{
|
||||
smb_ucs2_t *r, *rp, *sp;
|
||||
smb_ucs2_t *r, *rp;
|
||||
const smb_ucs2_t *sp;
|
||||
size_t lr, lp, li, lt;
|
||||
|
||||
if (!insert || !pattern || !*pattern || !s) return NULL;
|
||||
@ -836,7 +837,7 @@ smb_ucs2_t *all_string_sub_w(const smb_ucs2_t *s, const smb_ucs2_t *pattern,
|
||||
li = (size_t)strlen_w(insert);
|
||||
|
||||
if (li > lp) {
|
||||
smb_ucs2_t *st = s;
|
||||
const smb_ucs2_t *st = s;
|
||||
int ld = li - lp;
|
||||
while ((sp = strstr_w(st, pattern))) {
|
||||
st = sp + lp;
|
||||
|
Loading…
x
Reference in New Issue
Block a user