[rtems commit] psxtmonce01/init.c: Use static and Simple Console

Joel Sherrill joel at rtems.org
Wed Nov 7 18:07:59 UTC 2018


Module:    rtems
Branch:    master
Commit:    98cc00e6f3d06dd3aa408b68778368345938b6be
Changeset: http://git.rtems.org/rtems/commit/?id=98cc00e6f3d06dd3aa408b68778368345938b6be

Author:    Joel Sherrill <joel at rtems.org>
Date:      Wed Nov  7 12:07:53 2018 -0600

psxtmonce01/init.c: Use static and Simple Console

---

 testsuites/psxtmtests/psxtmonce01/init.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/testsuites/psxtmtests/psxtmonce01/init.c b/testsuites/psxtmtests/psxtmonce01/init.c
index 5f8391a..074f21f 100644
--- a/testsuites/psxtmtests/psxtmonce01/init.c
+++ b/testsuites/psxtmtests/psxtmonce01/init.c
@@ -26,18 +26,13 @@
 
 const char rtems_test_name[] = "PSXTMONCE01";
 
-/* forward declarations to avoid warnings */
-void *POSIX_Init(void *argument);
-void benchmark_first_time(void);
-void initRoutine(void);
+static pthread_once_t once_control = PTHREAD_ONCE_INIT;
 
-pthread_once_t once_control = PTHREAD_ONCE_INIT;
-
-void initRoutine(void)
+static void initRoutine(void)
 {
 }
 
-void benchmark_first_time(void)
+static void benchmark_first_time(void)
 {
   long end_time;
   int  status;
@@ -56,7 +51,7 @@ void benchmark_first_time(void)
   );
 }
 
-void *POSIX_Init(
+static void *POSIX_Init(
   void *argument
 )
 {
@@ -70,7 +65,7 @@ void *POSIX_Init(
 
 /* configuration information */
 
-#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER
 
 #define CONFIGURE_MAXIMUM_POSIX_THREADS     1



More information about the vc mailing list