test: replace unsecure function with secure function

Signed-off-by: xuxinyu <xuxinyu6@huawei.com>
Change-Id: Ie120ffa529798f0f087ddfcd34f5d9c5802b6766
This commit is contained in:
xuxinyu
2022-08-25 22:31:01 +08:00
parent 44ec199465
commit e0b4fcb23d
231 changed files with 884 additions and 400 deletions

View File

@@ -65,7 +65,8 @@ static int TimerTest(void)
int ret;
int i;
(void)memset(&sev, 0, sizeof(struct sigevent));
ret = memset_s(&sev, sizeof(struct sigevent), 0, sizeof(struct sigevent));
ICUNIT_ASSERT_EQUAL(ret, 0, ret);
sev.sigev_notify = SIGEV_THREAD;
sev.sigev_notify_function = TempSigHandler;
sev.sigev_value.sival_ptr = (void *)TempSigHandler01;