aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifs_unicode.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/cifs_unicode.h')
-rw-r--r--fs/cifs/cifs_unicode.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/fs/cifs/cifs_unicode.h b/fs/cifs/cifs_unicode.h
index 274e412ec17c..614c11fcdcb6 100644
--- a/fs/cifs/cifs_unicode.h
+++ b/fs/cifs/cifs_unicode.h
@@ -70,7 +70,7 @@ int cifs_strtoUCS(__le16 *, const char *, int, const struct nls_table *);
70 * Address of the first string 70 * Address of the first string
71 */ 71 */
72static inline wchar_t * 72static inline wchar_t *
73UniStrcat(wchar_t * ucs1, const wchar_t * ucs2) 73UniStrcat(wchar_t *ucs1, const wchar_t *ucs2)
74{ 74{
75 wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */ 75 wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */
76 76
@@ -88,7 +88,7 @@ UniStrcat(wchar_t * ucs1, const wchar_t * ucs2)
88 * or NULL if the character is not in the string 88 * or NULL if the character is not in the string
89 */ 89 */
90static inline wchar_t * 90static inline wchar_t *
91UniStrchr(const wchar_t * ucs, wchar_t uc) 91UniStrchr(const wchar_t *ucs, wchar_t uc)
92{ 92{
93 while ((*ucs != uc) && *ucs) 93 while ((*ucs != uc) && *ucs)
94 ucs++; 94 ucs++;
@@ -107,7 +107,7 @@ UniStrchr(const wchar_t * ucs, wchar_t uc)
107 * > 0: First string is greater than second 107 * > 0: First string is greater than second
108 */ 108 */
109static inline int 109static inline int
110UniStrcmp(const wchar_t * ucs1, const wchar_t * ucs2) 110UniStrcmp(const wchar_t *ucs1, const wchar_t *ucs2)
111{ 111{
112 while ((*ucs1 == *ucs2) && *ucs1) { 112 while ((*ucs1 == *ucs2) && *ucs1) {
113 ucs1++; 113 ucs1++;
@@ -120,7 +120,7 @@ UniStrcmp(const wchar_t * ucs1, const wchar_t * ucs2)
120 * UniStrcpy: Copy a string 120 * UniStrcpy: Copy a string
121 */ 121 */
122static inline wchar_t * 122static inline wchar_t *
123UniStrcpy(wchar_t * ucs1, const wchar_t * ucs2) 123UniStrcpy(wchar_t *ucs1, const wchar_t *ucs2)
124{ 124{
125 wchar_t *anchor = ucs1; /* save the start of result string */ 125 wchar_t *anchor = ucs1; /* save the start of result string */
126 126
@@ -132,7 +132,7 @@ UniStrcpy(wchar_t * ucs1, const wchar_t * ucs2)
132 * UniStrlen: Return the length of a string (in 16 bit Unicode chars not bytes) 132 * UniStrlen: Return the length of a string (in 16 bit Unicode chars not bytes)
133 */ 133 */
134static inline size_t 134static inline size_t
135UniStrlen(const wchar_t * ucs1) 135UniStrlen(const wchar_t *ucs1)
136{ 136{
137 int i = 0; 137 int i = 0;
138 138
@@ -146,7 +146,7 @@ UniStrlen(const wchar_t * ucs1)
146 * string (length limited) 146 * string (length limited)
147 */ 147 */
148static inline size_t 148static inline size_t
149UniStrnlen(const wchar_t * ucs1, int maxlen) 149UniStrnlen(const wchar_t *ucs1, int maxlen)
150{ 150{
151 int i = 0; 151 int i = 0;
152 152
@@ -162,7 +162,7 @@ UniStrnlen(const wchar_t * ucs1, int maxlen)
162 * UniStrncat: Concatenate length limited string 162 * UniStrncat: Concatenate length limited string
163 */ 163 */
164static inline wchar_t * 164static inline wchar_t *
165UniStrncat(wchar_t * ucs1, const wchar_t * ucs2, size_t n) 165UniStrncat(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
166{ 166{
167 wchar_t *anchor = ucs1; /* save pointer to string 1 */ 167 wchar_t *anchor = ucs1; /* save pointer to string 1 */
168 168
@@ -180,7 +180,7 @@ UniStrncat(wchar_t * ucs1, const wchar_t * ucs2, size_t n)
180 * UniStrncmp: Compare length limited string 180 * UniStrncmp: Compare length limited string
181 */ 181 */
182static inline int 182static inline int
183UniStrncmp(const wchar_t * ucs1, const wchar_t * ucs2, size_t n) 183UniStrncmp(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
184{ 184{
185 if (!n) 185 if (!n)
186 return 0; /* Null strings are equal */ 186 return 0; /* Null strings are equal */
@@ -195,7 +195,7 @@ UniStrncmp(const wchar_t * ucs1, const wchar_t * ucs2, size_t n)
195 * UniStrncmp_le: Compare length limited string - native to little-endian 195 * UniStrncmp_le: Compare length limited string - native to little-endian
196 */ 196 */
197static inline int 197static inline int
198UniStrncmp_le(const wchar_t * ucs1, const wchar_t * ucs2, size_t n) 198UniStrncmp_le(const wchar_t *ucs1, const wchar_t *ucs2, size_t n)
199{ 199{
200 if (!n) 200 if (!n)
201 return 0; /* Null strings are equal */ 201 return 0; /* Null strings are equal */
@@ -210,7 +210,7 @@ UniStrncmp_le(const wchar_t * ucs1, const wchar_t * ucs2, size_t n)
210 * UniStrncpy: Copy length limited string with pad 210 * UniStrncpy: Copy length limited string with pad
211 */ 211 */
212static inline wchar_t * 212static inline wchar_t *
213UniStrncpy(wchar_t * ucs1, const wchar_t * ucs2, size_t n) 213UniStrncpy(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
214{ 214{
215 wchar_t *anchor = ucs1; 215 wchar_t *anchor = ucs1;
216 216
@@ -227,7 +227,7 @@ UniStrncpy(wchar_t * ucs1, const wchar_t * ucs2, size_t n)
227 * UniStrncpy_le: Copy length limited string with pad to little-endian 227 * UniStrncpy_le: Copy length limited string with pad to little-endian
228 */ 228 */
229static inline wchar_t * 229static inline wchar_t *
230UniStrncpy_le(wchar_t * ucs1, const wchar_t * ucs2, size_t n) 230UniStrncpy_le(wchar_t *ucs1, const wchar_t *ucs2, size_t n)
231{ 231{
232 wchar_t *anchor = ucs1; 232 wchar_t *anchor = ucs1;
233 233
@@ -248,7 +248,7 @@ UniStrncpy_le(wchar_t * ucs1, const wchar_t * ucs2, size_t n)
248 * NULL if no matching string is found 248 * NULL if no matching string is found
249 */ 249 */
250static inline wchar_t * 250static inline wchar_t *
251UniStrstr(const wchar_t * ucs1, const wchar_t * ucs2) 251UniStrstr(const wchar_t *ucs1, const wchar_t *ucs2)
252{ 252{
253 const wchar_t *anchor1 = ucs1; 253 const wchar_t *anchor1 = ucs1;
254 const wchar_t *anchor2 = ucs2; 254 const wchar_t *anchor2 = ucs2;
@@ -298,7 +298,7 @@ UniToupper(register wchar_t uc)
298 * UniStrupr: Upper case a unicode string 298 * UniStrupr: Upper case a unicode string
299 */ 299 */
300static inline wchar_t * 300static inline wchar_t *
301UniStrupr(register wchar_t * upin) 301UniStrupr(register wchar_t *upin)
302{ 302{
303 register wchar_t *up; 303 register wchar_t *up;
304 304
@@ -339,7 +339,7 @@ UniTolower(wchar_t uc)
339 * UniStrlwr: Lower case a unicode string 339 * UniStrlwr: Lower case a unicode string
340 */ 340 */
341static inline wchar_t * 341static inline wchar_t *
342UniStrlwr(register wchar_t * upin) 342UniStrlwr(register wchar_t *upin)
343{ 343{
344 register wchar_t *up; 344 register wchar_t *up;
345 345