From ebc3f30524f827e915b2f50c146e30ff74a638f7 Mon Sep 17 00:00:00 2001 From: yinjiaming Date: Tue, 3 Jan 2023 18:53:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8Dcodecheck=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E5=87=BA=E7=9A=84=E5=91=8A=E8=AD=A6=20=E7=BB=99?= =?UTF-8?q?=E5=AE=8F=E5=AE=9A=E4=B9=89=E4=B8=AD=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=E4=BA=86=E6=8B=AC=E5=8F=B7,=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E4=BA=86=E5=A4=9A=E4=BD=99=E7=9A=84=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yinjiaming Change-Id: I8853f6a9717ede96578cd674b83b716c8e63f0d8 --- testsuites/unittest/libc/posix/pthread/It_posix_pthread.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/testsuites/unittest/libc/posix/pthread/It_posix_pthread.h b/testsuites/unittest/libc/posix/pthread/It_posix_pthread.h index e38f09e8..5639b799 100644 --- a/testsuites/unittest/libc/posix/pthread/It_posix_pthread.h +++ b/testsuites/unittest/libc/posix/pthread/It_posix_pthread.h @@ -56,7 +56,7 @@ #define TEST_HwiTrigger(HWI_NUM_TEST) #define LOS_TaskLock() #define LOS_TaskUnlock() -#define LOS_MS2Tick(ms) (ms / 10) +#define LOS_MS2Tick(ms) ((ms) / 10) #define OS_TASK_PRIORITY_HIGHEST 0 #define OS_TASK_PRIORITY_LOWEST 31 @@ -228,12 +228,7 @@ struct testdata { }; extern struct testdata g_td; - -extern unsigned int sleep(unsigned int seconds); -extern unsigned int alarm(unsigned int seconds); - extern int map_errno(UINT32 err); -extern long sysconf(int name); extern void posix_signal_start(void); VOID ScenarInit(VOID); -- GitLab