diff options
| author | wangxiaoyao <[email protected]> | 2023-03-01 16:30:49 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-03-02 15:48:46 +0800 |
| commit | d1ed1c06cb2c1b35c9ff5214ca5575b31e617d57 (patch) | |
| tree | 163ec3cac01dda2361fb76126d9fae6233dddde0 /components/lwp | |
| parent | 31bfc855c1a361fdb9e7bde2c31a91d4ad250406 (diff) | |
[timer] use int pointer to interpret notify func in sevp
Diffstat (limited to 'components/lwp')
| -rw-r--r-- | components/lwp/lwp_syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/lwp/lwp_syscall.c b/components/lwp/lwp_syscall.c index 88e8f7c33c..276f7c18b1 100644 --- a/components/lwp/lwp_syscall.c +++ b/components/lwp/lwp_syscall.c @@ -1348,7 +1348,7 @@ rt_err_t sys_timer_create(clockid_t clockid, struct sigevent *restrict sevp, tim lwp_get_from_user(&timerid_k, (void *)timerid, sizeof(timerid_k)); /* to protect unsafe implementation in current rt-smart toolchain */ - RT_ASSERT(((struct ksigevent *)sevp)->sigev_tid == (rt_ubase_t)sevp_k.sigev_notify_function); + RT_ASSERT(((struct ksigevent *)sevp)->sigev_tid == *(int *)(&sevp_k.sigev_notify_function)); ret = timer_create(clockid, &sevp_k, &timerid_k); |
