sched/: Add some missing FAR. Update some comments.

This commit is contained in:
Gregory Nutt 2019-07-29 15:04:39 -06:00
parent eef2f4599e
commit 9f24fb5b4b
3 changed files with 12 additions and 9 deletions

View File

@ -380,8 +380,11 @@ static int vsprintf_internal(FAR struct lib_outstream_s *stream,
{
switch (sizeof(size_t))
{
/* The only known case that the default will be hit is the eZ80
* which has sizeof(size_t) = 3 which is the same as the sizeof(int)
/* The only known cases that the default will be hit are
* (1) the eZ80 which has sizeof(size_t) = 3 which is the
* same as the sizeof(int). And (2) if CONFIG_LIBC_LONG_LONG
* is not enabled and sizeof(size_t) is equal to
* sizeof(unsigned long long). This latter case is an error.
*/
default:

View File

@ -78,7 +78,7 @@ int task_reparent(pid_t ppid, pid_t chpid)
FAR struct task_group_s *chgrp;
FAR struct task_group_s *ogrp;
FAR struct task_group_s *pgrp;
struct tcb_s *tcb;
FAR struct tcb_s *tcb;
gid_t ogid;
gid_t pgid;
irqstate_t flags;
@ -210,9 +210,9 @@ int task_reparent(pid_t ppid, pid_t chpid)
#ifdef CONFIG_SCHED_CHILD_STATUS
FAR struct child_status_s *child;
#endif
struct tcb_s *ptcb;
struct tcb_s *chtcb;
struct tcb_s *otcb;
FAR struct tcb_s *ptcb;
FAR struct tcb_s *chtcb;
FAR struct tcb_s *otcb;
pid_t opid;
irqstate_t flags;
int ret;

View File

@ -282,8 +282,8 @@ static inline size_t nxvfork_argsize(FAR struct tcb_s *parent)
FAR struct task_tcb_s *nxtask_vforksetup(start_t retaddr, size_t *argsize)
{
struct tcb_s *parent = this_task();
struct task_tcb_s *child;
FAR struct tcb_s *parent = this_task();
FAR struct task_tcb_s *child;
uint8_t ttype;
int priority;
int ret;
@ -407,7 +407,7 @@ errout_with_tcb:
pid_t nxtask_vforkstart(FAR struct task_tcb_s *child)
{
struct tcb_s *parent = this_task();
FAR struct tcb_s *parent = this_task();
pid_t pid;
int rc;
int ret;