From 34e17ba0ce08c9f0cc62d8ce98740daa1663c392 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Mon, 4 Apr 2022 03:22:29 +0800 Subject: [PATCH] libc/string: Fix the minor style issue Signed-off-by: Xiang Xiao --- libs/libc/string/lib_strcat.c | 6 +++--- libs/libc/string/lib_strtokr.c | 4 ++-- libs/libc/string/lib_vikmemcpy.c | 6 ------ 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/libs/libc/string/lib_strcat.c b/libs/libc/string/lib_strcat.c index beb23e2652b..33f5a97b732 100644 --- a/libs/libc/string/lib_strcat.c +++ b/libs/libc/string/lib_strcat.c @@ -32,11 +32,11 @@ #ifndef CONFIG_ARCH_STRCAT #undef strcat /* See mm/README.txt */ -char *strcat(char *dest, const char *src) +FAR char *strcat(FAR char *dest, FAR const char *src) { - char *ret = dest; + FAR char *ret = dest; - dest += strlen(dest); + dest += strlen(dest); while (*src != '\0') { *dest++ = *src++; diff --git a/libs/libc/string/lib_strtokr.c b/libs/libc/string/lib_strtokr.c index 5193b83b512..f24d3428c26 100644 --- a/libs/libc/string/lib_strtokr.c +++ b/libs/libc/string/lib_strtokr.c @@ -77,8 +77,8 @@ FAR char *strtok_r(FAR char *str, FAR const char *delim, FAR char **saveptr) { - char *pbegin; - char *pend = NULL; + FAR char *pbegin; + FAR char *pend = NULL; /* Decide if we are starting a new string or continuing from * the point we left off. diff --git a/libs/libc/string/lib_vikmemcpy.c b/libs/libc/string/lib_vikmemcpy.c index 3e93b175d34..88e5676be7a 100644 --- a/libs/libc/string/lib_vikmemcpy.c +++ b/libs/libc/string/lib_vikmemcpy.c @@ -51,12 +51,6 @@ * ****************************************************************************/ -/**************************************************************************** - * Configuration definitions. - ****************************************************************************/ - -#define CONFIG_MEMCPY_INDEXED_COPY - /**************************************************************************** * Included Files ****************************************************************************/