mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
The delay parameter has 'int' type while explicit int32_t is used in sigtimedwait() (sig_timedwait.c) This can lead to wrong argument for systems that have default int size different than int32 (namely AVR).
This commit is contained in:
committed by
Gregory Nutt
parent
63f13283de
commit
b48ca00cd5
+1
-1
Submodule Documentation updated: 92c4a17b04...b4e33ca73c
@@ -167,7 +167,7 @@ extern "C"
|
|||||||
|
|
||||||
WDOG_ID wd_create(void);
|
WDOG_ID wd_create(void);
|
||||||
int wd_delete(WDOG_ID wdog);
|
int wd_delete(WDOG_ID wdog);
|
||||||
int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...);
|
int wd_start(WDOG_ID wdog, int32_t delay, wdentry_t wdentry, int argc, ...);
|
||||||
int wd_cancel(WDOG_ID wdog);
|
int wd_cancel(WDOG_ID wdog);
|
||||||
int wd_gettime(WDOG_ID wdog);
|
int wd_gettime(WDOG_ID wdog);
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ static inline void wd_expiration(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
int wd_start(WDOG_ID wdog, int delay, wdentry_t wdentry, int argc, ...)
|
int wd_start(WDOG_ID wdog, int32_t delay, wdentry_t wdentry, int argc, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
FAR struct wdog_s *curr;
|
FAR struct wdog_s *curr;
|
||||||
|
|||||||
Reference in New Issue
Block a user