mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
sched/wdog: Replace all callback argument from uint32_t to wdparm_t
and alwasy cast the argument of wd_start to wdparm_t Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
3b76666a1e
commit
4c706771c3
@@ -177,7 +177,7 @@ int nxsem_clockwait(FAR sem_t *sem, clockid_t clockid,
|
||||
|
||||
/* Start the watchdog */
|
||||
|
||||
wd_start(rtcb->waitdog, ticks, nxsem_timeout, 1, getpid());
|
||||
wd_start(rtcb->waitdog, ticks, nxsem_timeout, 1, (wdparm_t)getpid());
|
||||
|
||||
/* Now perform the blocking wait. If nxsem_wait() fails, the
|
||||
* negated errno value will be returned below.
|
||||
|
||||
@@ -132,7 +132,7 @@ int nxsem_tickwait(FAR sem_t *sem, clock_t start, uint32_t delay)
|
||||
|
||||
/* Start the watchdog with interrupts still disabled */
|
||||
|
||||
wd_start(rtcb->waitdog, delay, nxsem_timeout, 1, getpid());
|
||||
wd_start(rtcb->waitdog, delay, nxsem_timeout, 1, (wdparm_t)getpid());
|
||||
|
||||
/* Now perform the blocking wait */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user