summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2018-11-07 12:07:53 -0600
committerJoel Sherrill <joel@rtems.org>2018-11-07 12:07:53 -0600
commit98cc00e6f3d06dd3aa408b68778368345938b6be (patch)
treea39caa755cc969e67cc52d376e6760def0051ff5 /testsuites/psxtmtests
parentconfig: Include <rtems.h> for RTEMS_NEWLIB (diff)
downloadrtems-98cc00e6f3d06dd3aa408b68778368345938b6be.tar.bz2
psxtmonce01/init.c: Use static and Simple Console
Diffstat (limited to 'testsuites/psxtmtests')
-rw-r--r--testsuites/psxtmtests/psxtmonce01/init.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/testsuites/psxtmtests/psxtmonce01/init.c b/testsuites/psxtmtests/psxtmonce01/init.c
index 5f8391a210..074f21fba9 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