diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 21:15:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-14 21:15:18 +0000 |
commit | 313eb5bb780f9e9baa353651996b51ce33a85fca (patch) | |
tree | 2bd68d26bb0f4b17186f7b7cdb26f0f5c02932fd /nuttx/sched/sched_mergepending.c | |
parent | 33d20a1c87eb7cae586cc0d444729eda6c46e723 (diff) | |
download | px4-nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.tar.gz px4-nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.tar.bz2 px4-nuttx-313eb5bb780f9e9baa353651996b51ce33a85fca.zip |
Switching to C99 stdbool.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2339 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_mergepending.c')
-rw-r--r-- | nuttx/sched/sched_mergepending.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nuttx/sched/sched_mergepending.c b/nuttx/sched/sched_mergepending.c index c45010e8c..1448c0096 100644 --- a/nuttx/sched/sched_mergepending.c +++ b/nuttx/sched/sched_mergepending.c @@ -39,13 +39,14 @@ #include <nuttx/config.h> +#include <stdbool.h> #include <queue.h> #include <assert.h> #include "os_internal.h" /************************************************************************ - * Definitions + * Pre-processor Definitions ************************************************************************/ /************************************************************************ @@ -79,7 +80,7 @@ * None * * Return Value: - * TRUE if the head of the g_readytorun task list has changed. + * true if the head of the g_readytorun task list has changed. * * Assumptions: * - The caller has established a critical section before @@ -90,13 +91,13 @@ * ************************************************************************/ -boolean sched_mergepending(void) +bool sched_mergepending(void) { FAR _TCB *pndtcb; FAR _TCB *pndnext; FAR _TCB *rtrtcb; FAR _TCB *rtrprev; - boolean ret = FALSE; + bool ret = false; /* Initialize the inner search loop */ @@ -142,7 +143,7 @@ boolean sched_mergepending(void) g_readytorun.head = (FAR dq_entry_t*)pndtcb; rtrtcb->task_state = TSTATE_TASK_READYTORUN; pndtcb->task_state = TSTATE_TASK_RUNNING; - ret = TRUE; + ret = true; } else { |