diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-01-07 08:43:45 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-01-07 08:43:45 +0100 |
commit | 286403d7a3d0e521179e677c0d2fd7549c9ceab4 (patch) | |
tree | b0798b903b456aacf83277181bd2b11a1990b57c | |
parent | Update due to block device API changes (diff) | |
download | rtems-examples-286403d7a3d0e521179e677c0d2fd7549c9ceab4.tar.bz2 |
Fix warnings
Close #3670.
-rw-r--r-- | posix_api/livermore/pthread/init.c | 2 | ||||
-rw-r--r-- | posix_api/psx_example_2/test2.c | 2 |
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> |