summaryrefslogtreecommitdiff
path: root/nuttx/sched/pthread_detach.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/pthread_detach.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/pthread_detach.c')
-rw-r--r--nuttx/sched/pthread_detach.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/sched/pthread_detach.c b/nuttx/sched/pthread_detach.c
index dc8352930..52ea63ca5 100644
--- a/nuttx/sched/pthread_detach.c
+++ b/nuttx/sched/pthread_detach.c
@@ -40,6 +40,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
+#include <stdbool.h>
#include <pthread.h>
#include <errno.h>
#include <debug.h>
@@ -48,7 +49,7 @@
#include "pthread_internal.h"
/************************************************************************
- * Definitions
+ * Pre-processor Definitions
************************************************************************/
/************************************************************************
@@ -121,7 +122,7 @@ int pthread_detach(pthread_t thread)
* thread exits
*/
- pjoin->detached = TRUE;
+ pjoin->detached = true;
}
/* Either case is successful */