From e3a5db8ffe05196a358571d91c82475c48f9905a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=95=8F=E6=9D=B0?= Date: Tue, 17 Jun 2025 02:57:53 +0000 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 吴敏杰 --- interfaces/kits/samgr/common.h | 2 +- samgr/adapter/posix/thread_adapter.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/kits/samgr/common.h b/interfaces/kits/samgr/common.h index adc924c..6fde83e 100644 --- a/interfaces/kits/samgr/common.h +++ b/interfaces/kits/samgr/common.h @@ -108,7 +108,7 @@ typedef struct SimpleVector { /** Peak value of the number of stored data records. The initial value is 0. */ int16 top; /** Number of data records that have been released. The initial value is 0. */ - int16 free; + int16 freee; /** Data storage pointer */ void **data; /** diff --git a/samgr/adapter/posix/thread_adapter.c b/samgr/adapter/posix/thread_adapter.c index adf7cb3..ffdd775 100644 --- a/samgr/adapter/posix/thread_adapter.c +++ b/samgr/adapter/posix/thread_adapter.c @@ -80,8 +80,8 @@ ThreadId THREAD_Create(Runnable run, void *argv, const ThreadAttr *attr) pthread_attr_setschedparam(&threadAttr, &sched); (void) pthread_once(&g_localKeyOnce, KeyCreate); pthread_t threadId = 0; - int errno = pthread_create(&threadId, &threadAttr, run, argv); - if (errno != 0) { + int err = pthread_create(&threadId, &threadAttr, run, argv); + if (err != 0) { return NULL; } -- Gitee