mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
net/utils: net_lock() and net_restorelock() not return a value. That values is the standard zero on success; negated errno value on failure. This return value is only needed for -ECANCELED. That cancellation indication needs to ripple all the way back to the highest levels where the cancellation can be acted on. This commit only adds the return value; it does not add checking for the return values of net_lock() and net_restorelock() at higher levels. That is required too.
This commit is contained in:
@@ -301,11 +301,12 @@ void net_initialize(void);
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None
|
||||
* Zero (OK) is returned on success; a negated errno value is returned on
|
||||
* failured (probably -ECANCELED).
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void net_lock(void);
|
||||
int net_lock(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: net_unlock
|
||||
|
||||
Reference in New Issue
Block a user