summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest/sighand.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 19:00:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-15 19:00:40 +0000
commit08b2e5a5495fb08277274eaaf91c21069e0fbadf (patch)
tree8fd7037b0159064a937714529251eb34ec4f4e73 /nuttx/examples/ostest/sighand.c
parentefcfa33c1fa5728dc7c8dd9fd9f20ed7d8a0b27a (diff)
downloadpx4-nuttx-08b2e5a5495fb08277274eaaf91c21069e0fbadf.tar.gz
px4-nuttx-08b2e5a5495fb08277274eaaf91c21069e0fbadf.tar.bz2
px4-nuttx-08b2e5a5495fb08277274eaaf91c21069e0fbadf.zip
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2351 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/sighand.c')
-rw-r--r--nuttx/examples/ostest/sighand.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/examples/ostest/sighand.c b/nuttx/examples/ostest/sighand.c
index 223761f1f..46650be1c 100644
--- a/nuttx/examples/ostest/sighand.c
+++ b/nuttx/examples/ostest/sighand.c
@@ -34,6 +34,7 @@
***********************************************************************/
#include <sys/types.h>
+#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
#include <semaphore.h>
@@ -50,8 +51,8 @@
#define SIGVALUE_INT 42
static sem_t sem;
-static boolean sigreceived = FALSE;
-static boolean threadexited = FALSE;
+static bool sigreceived = false;
+static bool threadexited = false;
static void wakeup_action(int signo, siginfo_t *info, void *ucontext)
{
@@ -61,7 +62,7 @@ static void wakeup_action(int signo, siginfo_t *info, void *ucontext)
printf("wakeup_action: Received signal %d\n" , signo);
- sigreceived = TRUE;
+ sigreceived = true;
/* Check signo */
@@ -185,7 +186,7 @@ static int waiter_main(int argc, char *argv[])
fflush(stdout);
#endif
- threadexited = TRUE;
+ threadexited = true;
return 0;
}