mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
wd_start: use sclock_t type replace int
when enable SYSTEM_TIME64, tick may exceed the int32 range
example:
pthread_cond_clockwait
---->clock_abstime2ticks
---->wd_start
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -170,13 +170,13 @@ static inline void wd_expiration(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int wd_start(FAR struct wdog_s *wdog, int32_t delay,
|
||||
int wd_start(FAR struct wdog_s *wdog, sclock_t delay,
|
||||
wdentry_t wdentry, wdparm_t arg)
|
||||
{
|
||||
FAR struct wdog_s *curr;
|
||||
FAR struct wdog_s *prev;
|
||||
FAR struct wdog_s *next;
|
||||
int32_t now;
|
||||
sclock_t now;
|
||||
irqstate_t flags;
|
||||
|
||||
/* Verify the wdog and setup parameters */
|
||||
|
||||
Reference in New Issue
Block a user