mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:43:28 +08:00
nuttx/sched: Remove explicit references to errno. That is a problem from within the kernel for certain configurations
This commit is contained in:
@@ -113,7 +113,7 @@ int putenv(FAR const char *string)
|
||||
return ret;
|
||||
|
||||
errout:
|
||||
errno = ret;
|
||||
set_errno(ret);
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ int setenv(FAR const char *name, FAR const char *value, int overwrite)
|
||||
errout_with_lock:
|
||||
sched_unlock();
|
||||
errout:
|
||||
errno = ret;
|
||||
set_errno(ret);
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user