diff options
author | Steve French <sfrench@us.ibm.com> | 2005-11-11 15:18:19 -0800 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-11-11 15:18:19 -0800 |
commit | e89dc9209692293434da45ec31826a55becb91c0 (patch) | |
tree | 171ebb84c30467cbff8a5bf8213dbf40e64d84f7 /fs/cifs/readdir.c | |
parent | 8b94bcb923dff923a5a5b7c6f890702a54cb19cf (diff) | |
download | lwn-e89dc9209692293434da45ec31826a55becb91c0.tar.gz lwn-e89dc9209692293434da45ec31826a55becb91c0.zip |
[CIFS] Cleanup sparse warnings for unicode little endian casts
Following Shaggy's suggestion, do a better job on the unicode string
handling routines in cifs in specifying that the wchar_t are really
little endian widechars (__le16).
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/readdir.c')
-rw-r--r-- | fs/cifs/readdir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c index fc615670f4b8..9b7e0ff9584b 100644 --- a/fs/cifs/readdir.c +++ b/fs/cifs/readdir.c @@ -705,7 +705,7 @@ static int cifs_get_name_from_search_buf(struct qstr *pqst, (__le16 *)filename, len/2, nlt); else pqst->len = cifs_strfromUCS_le((char *)pqst->name, - (wchar_t *)filename,len/2,nlt); + (__le16 *)filename,len/2,nlt); } else { pqst->name = filename; pqst->len = len; |