summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-07 07:43:45 (UTC)
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-07 07:43:45 (UTC)
commit286403d7a3d0e521179e677c0d2fd7549c9ceab4 (patch)
treeb0798b903b456aacf83277181bd2b11a1990b57c
parent1556c8b602d8b57a9114e4079276eadaa99f7204 (diff)
downloadexamples-v2-master.tar.bz2
Fix warningsHEADmaster
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>