summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 21:15:18 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 21:15:18 +0000
commit313eb5bb780f9e9baa353651996b51ce33a85fca (patch)
tree2bd68d26bb0f4b17186f7b7cdb26f0f5c02932fd /nuttx/sched/sem_internal.h
parent33d20a1c87eb7cae586cc0d444729eda6c46e723 (diff)
downloadpx4-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/sem_internal.h')
-rw-r--r--nuttx/sched/sem_internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/sched/sem_internal.h b/nuttx/sched/sem_internal.h
index 054946301..feb99ef0b 100644
--- a/nuttx/sched/sem_internal.h
+++ b/nuttx/sched/sem_internal.h
@@ -44,12 +44,13 @@
#include <nuttx/compiler.h>
#include <stdint.h>
+#include <stdbool.h>
#include <semaphore.h>
#include <sched.h>
#include <queue.h>
/****************************************************************************
- * Definitions
+ * Pre-processor Definitions
****************************************************************************/
/****************************************************************************
@@ -64,7 +65,7 @@ struct nsem_s
FAR struct nsem_s *blink; /* Backward link */
uint16_t nconnect; /* Number of connections to semaphore */
FAR char *name; /* Semaphore name (NULL if un-named) */
- boolean unlinked; /* TRUE if the semaphore has been unlinked */
+ bool unlinked; /* true if the semaphore has been unlinked */
sem_t sem; /* The semaphore itself */
};
typedef struct nsem_s nsem_t;