mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
charset: Remove unused strcmp_w()
Found by callcatcher. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
This commit is contained in:
parent
ac57defdb4
commit
fc5a214d71
@ -236,7 +236,6 @@ smb_ucs2_t *strnrchr_w(const smb_ucs2_t *s, smb_ucs2_t c, unsigned int n);
|
|||||||
smb_ucs2_t *strstr_w(const smb_ucs2_t *s, const smb_ucs2_t *ins);
|
smb_ucs2_t *strstr_w(const smb_ucs2_t *s, const smb_ucs2_t *ins);
|
||||||
bool strlower_w(smb_ucs2_t *s);
|
bool strlower_w(smb_ucs2_t *s);
|
||||||
bool strupper_w(smb_ucs2_t *s);
|
bool strupper_w(smb_ucs2_t *s);
|
||||||
int strcmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b);
|
|
||||||
int strcasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b);
|
int strcasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b);
|
||||||
int strncasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len);
|
int strncasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len);
|
||||||
int strcmp_wa(const smb_ucs2_t *a, const char *b);
|
int strcmp_wa(const smb_ucs2_t *a, const char *b);
|
||||||
|
@ -207,20 +207,6 @@ bool strupper_w(smb_ucs2_t *s)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int strcmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b)
|
|
||||||
{
|
|
||||||
smb_ucs2_t cpa, cpb;
|
|
||||||
|
|
||||||
while ((*(COPY_UCS2_CHAR(&cpb,b))) && (*(COPY_UCS2_CHAR(&cpa,a)) == cpb)) {
|
|
||||||
a++;
|
|
||||||
b++;
|
|
||||||
}
|
|
||||||
return (*(COPY_UCS2_CHAR(&cpa,a)) - *(COPY_UCS2_CHAR(&cpb,b)));
|
|
||||||
/* warning: if *a != *b and both are not 0 we return a random
|
|
||||||
greater or lesser than 0 number not realted to which
|
|
||||||
string is longer */
|
|
||||||
}
|
|
||||||
|
|
||||||
static int strncmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len)
|
static int strncmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len)
|
||||||
{
|
{
|
||||||
smb_ucs2_t cpa, cpb;
|
smb_ucs2_t cpa, cpb;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user