diff --git a/interfaces/kits/samgr/common.h b/interfaces/kits/samgr/common.h
index adc924c029f5816ff430cc39b92cb0fd6c7fda8c..6fde83e3b3ce2d46889fdf0c43125f5c46a7302a 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 adf7cb353beb5bc785f816e9d6f74441d48aa598..ffdd7758c8cbe91531f6d5b3466870cb360aaa69 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;
}