sched/: Fix some spacing issues

This commit is contained in:
Gregory Nutt
2015-10-07 19:59:14 -06:00
parent 59e5e2f5cc
commit 79d554939e
123 changed files with 381 additions and 374 deletions
+1 -1
View File
@@ -74,7 +74,7 @@
int clearenv(void)
{
FAR struct tcb_s *tcb = (FAR struct tcb_s*)g_readytorun.head;
FAR struct tcb_s *tcb = (FAR struct tcb_s *)g_readytorun.head;
DEBUGASSERT(tcb->group);
env_release(tcb->group);
+1 -1
View File
@@ -81,7 +81,7 @@
int env_dup(FAR struct task_group_s *group)
{
FAR struct tcb_s *ptcb = (FAR struct tcb_s*)g_readytorun.head;
FAR struct tcb_s *ptcb = (FAR struct tcb_s *)g_readytorun.head;
FAR char *envp = NULL;
size_t envlen;
int ret = OK;
+1 -1
View File
@@ -67,7 +67,7 @@ static bool env_cmpname(const char *pszname, const char *peqname)
/* On sucess, pszname will end with '\0' and peqname with '=' */
if ( *pszname == '\0' && *peqname == '=' )
if (*pszname == '\0' && *peqname == '=')
{
return true;
}
+2 -3
View File
@@ -94,12 +94,12 @@ FAR char *getenv(const char *name)
/* Get a reference to the thread-private environ in the TCB. */
sched_lock();
rtcb = (FAR struct tcb_s*)g_readytorun.head;
rtcb = (FAR struct tcb_s *)g_readytorun.head;
group = rtcb->group;
/* Check if the variable exists */
if ( !group || (pvar = env_findvar(group, name)) == NULL)
if (!group || (pvar = env_findvar(group, name)) == NULL)
{
ret = ENOENT;
goto errout_with_lock;
@@ -130,4 +130,3 @@ errout:
}
#endif /* CONFIG_DISABLE_ENVIRON */
+2 -2
View File
@@ -71,7 +71,7 @@
*
****************************************************************************/
FAR char **get_environ_ptr( void )
FAR char **get_environ_ptr(void)
{
#if 1
@@ -85,7 +85,7 @@ FAR char **get_environ_ptr( void )
/* Return a reference to the thread-private environ in the TCB. */
FAR struct tcb_s *ptcb = (FAR struct tcb_s*)g_readytorun.head;
FAR struct tcb_s *ptcb = (FAR struct tcb_s *)g_readytorun.head;
if (ptcb->envp)
{
return &ptcb->envp->ev_env;
+1 -1
View File
@@ -100,7 +100,7 @@ int putenv(FAR const char *string)
goto errout;
}
pequal = strchr( pname, '=');
pequal = strchr(pname, '=');
if (pequal)
{
/* Then let setenv do all of the work */
+1 -1
View File
@@ -124,7 +124,7 @@ int setenv(FAR const char *name, FAR const char *value, int overwrite)
/* Get a reference to the thread-private environ in the TCB. */
sched_lock();
rtcb = (FAR struct tcb_s*)g_readytorun.head;
rtcb = (FAR struct tcb_s *)g_readytorun.head;
group = rtcb->group;
DEBUGASSERT(group);
+1 -1
View File
@@ -77,7 +77,7 @@
int unsetenv(FAR const char *name)
{
FAR struct tcb_s *rtcb = (FAR struct tcb_s*)g_readytorun.head;
FAR struct tcb_s *rtcb = (FAR struct tcb_s *)g_readytorun.head;
FAR struct task_group_s *group = rtcb->group;
FAR char *pvar;
FAR char *newenvp;