mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
sched/wdog: Don't dynamically allocate wdog_s
to save the preserved space(1KB) and also avoid the heap overhead Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I694073f68e1bd63960cedeea1ddec441437be025
This commit is contained in:
@@ -81,7 +81,7 @@ int timer_gettime(timer_t timerid, FAR struct itimerspec *value)
|
||||
|
||||
/* Get the number of ticks before the underlying watchdog expires */
|
||||
|
||||
ticks = wd_gettime(timer->pt_wdog);
|
||||
ticks = wd_gettime(&timer->pt_wdog);
|
||||
|
||||
/* Convert that to a struct timespec and return it */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user