mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 10:32:47 +08:00
sched/wdog: wd_start() is an internal OS function and should not set the errno value. Reviewed and updated every call to wd_start() to verify if return value is used and if so if the errno value is accessed.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
/****************************************************************************
|
||||
* include/nuttx/wdog.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2014-2015 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2014-2015, 2018 Gregory Nutt. All rights
|
||||
* reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -196,7 +197,8 @@ WDOG_ID wd_create(void);
|
||||
* watchdog structure.
|
||||
*
|
||||
* Return Value:
|
||||
* Returns OK or ERROR
|
||||
* Zero (OK) is returned on success; a negated errno value is return to
|
||||
* indicate the nature of any failure.
|
||||
*
|
||||
* Assumptions:
|
||||
* The caller has assured that the watchdog is no longer in use.
|
||||
@@ -230,7 +232,8 @@ int wd_delete(WDOG_ID wdog);
|
||||
* parm1..4 - parameters to pass to wdentry
|
||||
*
|
||||
* Return Value:
|
||||
* OK or ERROR
|
||||
* Zero (OK) is returned on success; a negated errno value is return to
|
||||
* indicate the nature of any failure.
|
||||
*
|
||||
* Assumptions:
|
||||
* The watchdog routine runs in the context of the timer interrupt handler
|
||||
|
||||
Reference in New Issue
Block a user