summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-07 08:43:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-07 08:43:45 +0100
commit286403d7a3d0e521179e677c0d2fd7549c9ceab4 (patch)
treeb0798b903b456aacf83277181bd2b11a1990b57c
parentUpdate due to block device API changes (diff)
downloadrtems-examples-286403d7a3d0e521179e677c0d2fd7549c9ceab4.tar.bz2
Fix warnings
Close #3670.
-rw-r--r--posix_api/livermore/pthread/init.c2
-rw-r--r--posix_api/psx_example_2/test2.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/posix_api/livermore/pthread/init.c b/posix_api/livermore/pthread/init.c
index bbc296b..af90ba4 100644
--- a/posix_api/livermore/pthread/init.c
+++ b/posix_api/livermore/pthread/init.c
@@ -59,7 +59,7 @@ void *POSIX_Init(void *argument)
pthread_join(threads[t],NULL);
}
/* Last thing that main() should do */
- exit(NULL);
+ exit(0);
}
/* NOTICE: the clock driver is explicitly disabled */
diff --git a/posix_api/psx_example_2/test2.c b/posix_api/psx_example_2/test2.c
index ec91b1b..b9df107 100644
--- a/posix_api/psx_example_2/test2.c
+++ b/posix_api/psx_example_2/test2.c
@@ -1,4 +1,4 @@
-#include <bsp.h>
+#include <sys/time.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>