mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[CIFS] remove cifs_strfromUCS_le
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
parent
2edd6c5b05
commit
3410602732
2 changed files with 0 additions and 30 deletions
|
@ -180,35 +180,6 @@ cifs_from_ucs2(char *to, const __le16 *from, int tolen, int fromlen,
|
||||||
return outlen;
|
return outlen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* NAME: cifs_strfromUCS()
|
|
||||||
*
|
|
||||||
* FUNCTION: Convert little-endian unicode string to character string
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
cifs_strfromUCS_le(char *to, const __le16 *from,
|
|
||||||
int len, const struct nls_table *codepage)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
int outlen = 0;
|
|
||||||
|
|
||||||
for (i = 0; (i < len) && from[i]; i++) {
|
|
||||||
int charlen;
|
|
||||||
/* 2.4.0 kernel or greater */
|
|
||||||
charlen =
|
|
||||||
codepage->uni2char(le16_to_cpu(from[i]), &to[outlen],
|
|
||||||
NLS_MAX_CHARSET_SIZE);
|
|
||||||
if (charlen > 0) {
|
|
||||||
outlen += charlen;
|
|
||||||
} else {
|
|
||||||
to[outlen++] = '?';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
to[outlen] = 0;
|
|
||||||
return outlen;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NAME: cifs_strtoUCS()
|
* NAME: cifs_strtoUCS()
|
||||||
*
|
*
|
||||||
|
|
|
@ -76,7 +76,6 @@ int cifs_from_ucs2(char *to, const __le16 *from, int tolen, int fromlen,
|
||||||
const struct nls_table *codepage, bool mapchar);
|
const struct nls_table *codepage, bool mapchar);
|
||||||
int cifs_ucs2_bytes(const __le16 *from, int maxbytes,
|
int cifs_ucs2_bytes(const __le16 *from, int maxbytes,
|
||||||
const struct nls_table *codepage);
|
const struct nls_table *codepage);
|
||||||
int cifs_strfromUCS_le(char *, const __le16 *, int, const struct nls_table *);
|
|
||||||
int cifs_strtoUCS(__le16 *, const char *, int, const struct nls_table *);
|
int cifs_strtoUCS(__le16 *, const char *, int, const struct nls_table *);
|
||||||
char *cifs_strndup_from_ucs(const char *src, const int maxlen,
|
char *cifs_strndup_from_ucs(const char *src, const int maxlen,
|
||||||
const bool is_unicode,
|
const bool is_unicode,
|
||||||
|
|
Loading…
Reference in a new issue