diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-09-03 10:16:43 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-09-04 09:08:05 -0500 |
commit | de549c3df9310861ccd4b19ef837bb94565b2290 (patch) | |
tree | babd9997da5f84ccd12edc07126000fad14f5c30 /testsuites/psxtmtests/psxtmthread04/init.c | |
parent | spfreechain01/init.c: Use %zd for size_t to eliminate warning (diff) | |
download | rtems-de549c3df9310861ccd4b19ef837bb94565b2290.tar.bz2 |
Misc psxtmtests: Use uint32_t not long for end_time to match printf() format expectations
Diffstat (limited to 'testsuites/psxtmtests/psxtmthread04/init.c')
-rw-r--r-- | testsuites/psxtmtests/psxtmthread04/init.c | 16 |
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, ¶m ); @@ -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, ¶m ); rtems_test_assert( status == 0 ); |