This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new e3a733ae96 libc/machine: fix config error
e3a733ae96 is described below

commit e3a733ae961ba482ac175ecb13bbe08f995088b7
Author: wangmingrong1 <wangmingro...@xiaomi.com>
AuthorDate: Tue Dec 24 18:57:18 2024 +0800

    libc/machine: fix config error
    
    Signed-off-by: wangmingrong1 <wangmingro...@xiaomi.com>
---
 libs/libc/machine/arch_libc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/libc/machine/arch_libc.c b/libs/libc/machine/arch_libc.c
index 00c2939a4d..023ea07060 100644
--- a/libs/libc/machine/arch_libc.c
+++ b/libs/libc/machine/arch_libc.c
@@ -64,7 +64,7 @@ FAR char *ARCH_LIBCFUN(strcpy)(FAR char *dest, FAR const char 
*src);
 size_t ARCH_LIBCFUN(strlen)(FAR const char *s);
 #endif
 
-#ifdef CONFIG_LIBC_ARCHSTRNCPY
+#ifdef CONFIG_LIBC_ARCH_STRNCPY
 FAR char *ARCH_LIBCFUN(strncpy)(FAR char *dest,
                                 FAR const char *src, size_t n);
 #endif
@@ -212,7 +212,7 @@ size_t strlen(FAR const char *s)
 }
 #endif
 
-#ifdef CONFIG_LIBC_ARCHSTRNCPY
+#ifdef CONFIG_LIBC_ARCH_STRNCPY
 FAR char *strncpy(FAR char *dest, FAR const char *src, size_t n)
 {
 #  ifdef CONFIG_MM_KASAN

Reply via email to