summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_open.c
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_open.c
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_open.c')
-rw-r--r--nuttx/sched/sem_open.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nuttx/sched/sem_open.c b/nuttx/sched/sem_open.c
index aeb5097eb..cd9ca6129 100644
--- a/nuttx/sched/sem_open.c
+++ b/nuttx/sched/sem_open.c
@@ -37,7 +37,10 @@
* Included Files
****************************************************************************/
+#include <nuttx/config.h>
+
#include <sys/types.h>
+#include <stdbool.h>
#include <stdarg.h>
#include <limits.h>
#include <fcntl.h>
@@ -48,7 +51,7 @@
#include "sem_internal.h"
/****************************************************************************
- * Definitions
+ * Pre-processor Definitions
****************************************************************************/
/****************************************************************************
@@ -178,7 +181,7 @@ FAR sem_t *sem_open (FAR const char *name, int oflag, ...)
sem_init(sem, 0, value);
psem->nconnect = 1;
- psem->unlinked = FALSE;
+ psem->unlinked = false;
psem->name = (FAR char*)psem + sizeof(nsem_t);
strcpy(psem->name, name);