libc/wchar: Fix the minor style issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-05-30 08:31:07 +08:00 committed by Masayuki Ishikawa
parent 247ad41bb2
commit 88fd6210f6
5 changed files with 5 additions and 5 deletions

View File

@ -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 */

View File

@ -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++;

View File

@ -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

View File

@ -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

View File

@ -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;