summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmthread02/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-11 13:58:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-11 13:58:33 +0200
commit7b369afba9fecbf8a87a42375376d4ca8af7560c (patch)
tree5633949494ff207b4e7835ba6ab51164af66bf6f /testsuites/psxtmtests/psxtmthread02/init.c
parentsapi: Fix unified workspace option (diff)
downloadrtems-7b369afba9fecbf8a87a42375376d4ca8af7560c.tar.bz2
testsuites: Fix warnings
Diffstat (limited to 'testsuites/psxtmtests/psxtmthread02/init.c')
-rw-r--r--testsuites/psxtmtests/psxtmthread02/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtmtests/psxtmthread02/init.c b/testsuites/psxtmtests/psxtmthread02/init.c
index 41fb17f462..9e44873937 100644
--- a/testsuites/psxtmtests/psxtmthread02/init.c
+++ b/testsuites/psxtmtests/psxtmthread02/init.c
@@ -19,7 +19,7 @@
/* forward declarations to avoid warnings */
void *POSIX_Init(void *argument);
void benchmark_pthread_create(void);
-void thread(void *argument);
+void *thread(void *argument);
void benchmark_pthread_create(void)
{
@@ -46,11 +46,12 @@ void benchmark_pthread_create(void)
}
-void thread(
+void *thread(
void *argument
)
{
//Empty thread used in pthread_create().
+ return NULL;
}
void *POSIX_Init(