[examples-v2 commit] Fix warnings

Sebastian Huber sebh at rtems.org
Mon Jan 7 07:44:36 UTC 2019


Module:    examples-v2
Branch:    master
Commit:    286403d7a3d0e521179e677c0d2fd7549c9ceab4
Changeset: http://git.rtems.org/examples-v2/commit/?id=286403d7a3d0e521179e677c0d2fd7549c9ceab4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan  7 08:43:45 2019 +0100

Fix warnings

Close #3670.

---

 posix_api/livermore/pthread/init.c | 2 +-
 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>



More information about the vc mailing list