libc/wchar: Fix the minor style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
247ad41bb2
commit
88fd6210f6
|
@ -51,7 +51,7 @@ int swprintf(FAR wchar_t *buf, size_t maxlen, FAR const wchar_t *fmt, ...)
|
|||
/* Initialize a memory stream to write to the buffer */
|
||||
|
||||
lib_memoutstream((FAR struct lib_memoutstream_s *)&memoutstream,
|
||||
(FAR char *) buf, LIB_BUFLEN_UNKNOWN);
|
||||
(FAR char *)buf, maxlen);
|
||||
|
||||
/* Then let lib_vsprintf do the real work */
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ FAR wchar_t *wmemchr(FAR const wchar_t *s, wchar_t c, size_t n)
|
|||
{
|
||||
/* LINTED const castaway */
|
||||
|
||||
return (FAR wchar_t *) s;
|
||||
return (FAR wchar_t *)s;
|
||||
}
|
||||
|
||||
s++;
|
||||
|
|
|
@ -55,6 +55,6 @@
|
|||
|
||||
FAR wchar_t *wmemcpy(FAR wchar_t *d, FAR const wchar_t *s, size_t n)
|
||||
{
|
||||
return (FAR wchar_t *) memcpy(d, s, n * sizeof(wchar_t));
|
||||
return (FAR wchar_t *)memcpy(d, s, n * sizeof(wchar_t));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -54,6 +54,6 @@
|
|||
|
||||
FAR wchar_t *wmemmove(FAR wchar_t *d, FAR const wchar_t *s, size_t n)
|
||||
{
|
||||
return (FAR wchar_t *) memmove(d, s, n * sizeof(wchar_t));
|
||||
return (FAR wchar_t *)memmove(d, s, n * sizeof(wchar_t));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -57,7 +57,7 @@ FAR wchar_t *wmemset(FAR wchar_t *s, wchar_t c, size_t n)
|
|||
FAR wchar_t *p;
|
||||
size_t i;
|
||||
|
||||
p = (FAR wchar_t *) s;
|
||||
p = (FAR wchar_t *)s;
|
||||
for (i = 0; i < n; i++)
|
||||
{
|
||||
*p = c;
|
||||
|
|
Loading…
Reference in New Issue