summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx07/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-11 01:41:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-05-11 01:41:16 +0000
commit2e7e636f7568558b7f3508ffd5acce55161668ef (patch)
treefec2e364c3df8bd689e794e82309c650584e5376 /testsuites/psxtests/psx07/init.c
parent2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-2e7e636f7568558b7f3508ffd5acce55161668ef.tar.bz2
2009-05-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx01/init.c, psx01/task.c, psx02/init.c, psx02/task.c, psx03/init.c, psx04/init.c, psx04/task1.c, psx04/task3.c, psx05/init.c, psx06/init.c, psx07/init.c, psx08/init.c, psx09/init.c, psx11/task.c, psx12/init.c, psx13/main.c, psx13/test.c, psxbarrier01/test.c, psxcancel/init.c, psxcleanup/psxcleanup.c, psxenosys/init.c, psxmsgq02/init.c, psxtime/main.c, psxtime/test.c, psxtimer01/psxtimer.c, psxtimer02/psxtimer.c: Fix warnings.
Diffstat (limited to 'testsuites/psxtests/psx07/init.c')
-rw-r--r--testsuites/psxtests/psx07/init.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/testsuites/psxtests/psx07/init.c b/testsuites/psxtests/psx07/init.c
index de9392bb98..8ebe6ca75c 100644
--- a/testsuites/psxtests/psx07/init.c
+++ b/testsuites/psxtests/psx07/init.c
@@ -1,5 +1,5 @@
/*
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -17,6 +17,11 @@
void print_schedparam(
char *prefix,
struct sched_param *schedparam
+);
+
+void print_schedparam(
+ char *prefix,
+ struct sched_param *schedparam
)
{
printf( "%ssched priority = %d\n", prefix, schedparam->sched_priority );
@@ -474,7 +479,7 @@ void *POSIX_Init(
fatal_directive_check_status_only( status, EINVAL, "NULL schedparam" );
puts( "Init: pthread_getschedparam - ESRCH (bad thread)" );
- status = pthread_getschedparam( -1, &schedpolicy, &schedparam );
+ status = pthread_getschedparam( (pthread_t) -1, &schedpolicy, &schedparam );
fatal_directive_check_status_only( status, ESRCH, "bad thread" );
puts( "Init: pthread_getschedparam - SUCCESSFUL" );
@@ -506,7 +511,7 @@ void *POSIX_Init(
fatal_directive_check_status_only( status, EINVAL, "invalid policy" );
puts( "Init: pthread_setschedparam - ESRCH (invalid thread)" );
- status = pthread_setschedparam( -1, SCHED_OTHER, &schedparam );
+ status = pthread_setschedparam( (pthread_t) -1, SCHED_OTHER, &schedparam );
fatal_directive_check_status_only( status, ESRCH, "invalid thread" );
/* now get sporadic server errors */