summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmthread04
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-09-03 10:16:43 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-09-04 09:08:05 -0500
commitde549c3df9310861ccd4b19ef837bb94565b2290 (patch)
treebabd9997da5f84ccd12edc07126000fad14f5c30 /testsuites/psxtmtests/psxtmthread04
parentspfreechain01/init.c: Use %zd for size_t to eliminate warning (diff)
downloadrtems-de549c3df9310861ccd4b19ef837bb94565b2290.tar.bz2
Misc psxtmtests: Use uint32_t not long for end_time to match printf() format expectations
Diffstat (limited to 'testsuites/psxtmtests/psxtmthread04')
-rw-r--r--testsuites/psxtmtests/psxtmthread04/init.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuites/psxtmtests/psxtmthread04/init.c b/testsuites/psxtmtests/psxtmthread04/init.c
index 28e1833a8a..dc1290c56a 100644
--- a/testsuites/psxtmtests/psxtmthread04/init.c
+++ b/testsuites/psxtmtests/psxtmthread04/init.c
@@ -26,10 +26,10 @@ void *POSIX_Init(void *argument);
void benchmark_pthread_getschedparam(void)
{
- long end_time;
- int status;
- int policy;
- struct sched_param param;
+ uint32_t end_time;
+ int status;
+ int policy;
+ struct sched_param param;
benchmark_timer_initialize();
status = pthread_getschedparam( pthread_self(), &policy, &param );
@@ -48,10 +48,10 @@ void benchmark_pthread_getschedparam(void)
void benchmark_pthread_setschedparam(void)
{
- long end_time;
- int status;
- int policy;
- struct sched_param param;
+ uint32_t end_time;
+ int status;
+ int policy;
+ struct sched_param param;
status = pthread_getschedparam( pthread_self(), &policy, &param );
rtems_test_assert( status == 0 );