Miscellaneous fixes from astyle tool.

This commit is contained in:
Arjun Hary
2017-08-14 17:19:27 -06:00
committed by Gregory Nutt
parent 777169385c
commit b274a97840
63 changed files with 422 additions and 418 deletions
+2 -2
View File
@@ -100,7 +100,7 @@
/* This is the list of all tasks that are ready to run. This is a /* This is the list of all tasks that are ready to run. This is a
* prioritized list with head of the list holding the highest priority * prioritized list with head of the list holding the highest priority
* (unassigned) task. In the non-SMP cae, the head of this list is the * (unassigned) task. In the non-SMP case, the head of this list is the
* currently active task and the tail of this list, the lowest priority * currently active task and the tail of this list, the lowest priority
* task, is always the IDLE task. * task, is always the IDLE task.
*/ */
@@ -109,7 +109,7 @@ volatile dq_queue_t g_readytorun;
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
/* In order to support SMP, the function of the g_readytorun list changes, /* In order to support SMP, the function of the g_readytorun list changes,
* The g_readytorun is still used but in the SMP cae it will contain only: * The g_readytorun is still used but in the SMP case it will contain only:
* *
* - Only tasks/threads that are eligible to run, but not currently running, * - Only tasks/threads that are eligible to run, but not currently running,
* and * and
+1 -1
View File
@@ -152,7 +152,7 @@ struct tasklist_s
/* This is the list of all tasks that are ready to run. This is a /* This is the list of all tasks that are ready to run. This is a
* prioritized list with head of the list holding the highest priority * prioritized list with head of the list holding the highest priority
* (unassigned) task. In the non-SMP cae, the head of this list is the * (unassigned) task. In the non-SMP case, the head of this list is the
* currently active task and the tail of this list, the lowest priority * currently active task and the tail of this list, the lowest priority
* task, is always the IDLE task. * task, is always the IDLE task.
*/ */
+1 -1
View File
@@ -224,7 +224,7 @@ int waitid(idtype_t idtype, id_t id, FAR siginfo_t *info, int options)
#ifdef HAVE_GROUP_MEMBERS #ifdef HAVE_GROUP_MEMBERS
if (ctcb == NULL || ctcb->group->tg_pgid != rtcb->group->tg_gid) if (ctcb == NULL || ctcb->group->tg_pgid != rtcb->group->tg_gid)
#else #else
if (ctcb == NULL || ctcb->group>tg_ppid != rtcb->pid) if (ctcb == NULL || ctcb->group->tg_ppid != rtcb->pid)
#endif #endif
{ {
errcode = ECHILD; errcode = ECHILD;
+5 -1
View File
@@ -1189,7 +1189,11 @@ int sem_nfreeholders(void)
FAR struct semholder_s *pholder; FAR struct semholder_s *pholder;
int n; int n;
for (pholder = g_freeholders, n = 0; pholder; pholder = pholder->flink) n++; for (pholder = g_freeholders, n = 0; pholder; pholder = pholder->flink)
{
n++;
}
return n; return n;
#else #else
return 0; return 0;