mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
sched: nxstyle fixes
nxstyle fixes to pass CI Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
committed by
Xiang Xiao
parent
8935ac4cc3
commit
dee641828f
@@ -45,8 +45,8 @@
|
||||
*
|
||||
* Description:
|
||||
* Copy the internal environment structure of a task. This is the action
|
||||
* that is performed when a new task is created: The new task has a private,
|
||||
* exact duplicate of the parent task's environment.
|
||||
* that is performed when a new task is created: The new task has a
|
||||
* private, exact duplicate of the parent task's environment.
|
||||
*
|
||||
* Input Parameters:
|
||||
* group - The child task group to receive the newly allocated copy of the
|
||||
|
||||
@@ -60,7 +60,9 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int env_foreach(FAR struct task_group_s *group, env_foreach_t cb, FAR void *arg)
|
||||
int env_foreach(FAR struct task_group_s *group,
|
||||
env_foreach_t cb,
|
||||
FAR void *arg)
|
||||
{
|
||||
FAR char *ptr;
|
||||
FAR char *end;
|
||||
|
||||
@@ -41,7 +41,8 @@
|
||||
* Name: putenv
|
||||
*
|
||||
* Description:
|
||||
* The putenv() function adds or changes the value of environment variables.
|
||||
* The putenv() function adds or changes the value of environment
|
||||
* variables.
|
||||
* The argument string is of the form name=value. If name does not already
|
||||
* exist in the environment, then string is added to the environment. If
|
||||
* name does exist, then the value of name in the environment is changed to
|
||||
|
||||
@@ -96,7 +96,9 @@ int setenv(FAR const char *name, FAR const char *value, int overwrite)
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Otherwise, it is a request to remove a variable without altering it? */
|
||||
/* Otherwise, it is a request to remove a variable without
|
||||
* altering it?
|
||||
*/
|
||||
|
||||
return OK;
|
||||
}
|
||||
@@ -131,8 +133,8 @@ int setenv(FAR const char *name, FAR const char *value, int overwrite)
|
||||
env_removevar(group, pvar);
|
||||
}
|
||||
|
||||
/* Get the size of the new name=value string. The +2 is for the '=' and for
|
||||
* null terminator
|
||||
/* Get the size of the new name=value string.
|
||||
* The +2 is for the '=' and for null terminator
|
||||
*/
|
||||
|
||||
varlen = strlen(name) + strlen(value) + 2;
|
||||
|
||||
@@ -58,8 +58,9 @@ extern "C"
|
||||
*
|
||||
* Description:
|
||||
* Copy the internal environment structure of a task. This is the action
|
||||
* that is performed when a new task is created: The new task has a private,
|
||||
* exact duplicate of the parent task's environment.
|
||||
* that is performed when a new task is created:
|
||||
* The new task has a private, exact duplicate of the parent task's
|
||||
* environment.
|
||||
*
|
||||
* Input Parameters:
|
||||
* group - The child task group to receive the newly allocated copy of the
|
||||
|
||||
Reference in New Issue
Block a user