psxtmtests: Fix format warnings

Update #3384.
This commit is contained in:
Sebastian Huber
2019-01-28 14:17:39 +01:00
parent b1381ae7c3
commit 4f3a2532a3
4 changed files with 36 additions and 36 deletions
@@ -44,8 +44,8 @@ static pthread_barrierattr_t attr;
static void benchmark_create_barrierattr(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_barrierattr_init( &attr );
@@ -64,8 +64,8 @@ static void benchmark_create_barrierattr(void)
static void benchmark_barrierattr_setpshared(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_barrierattr_setpshared( &attr, PTHREAD_PROCESS_SHARED );
@@ -84,9 +84,9 @@ static void benchmark_barrierattr_setpshared(void)
static void benchmark_barrierattr_getpshared(void)
{
long end_time;
int status;
int pshared;
benchmark_timer_t end_time;
int status;
int pshared;
benchmark_timer_initialize();
status = pthread_barrierattr_getpshared( &attr, &pshared );
@@ -106,8 +106,8 @@ static void benchmark_barrierattr_getpshared(void)
static void benchmark_destroy_barrierattr(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_barrierattr_destroy( &attr );
+1 -1
View File
@@ -48,7 +48,7 @@ static void routine(void *arg)
static void benchmark_pthread_cleanup_push_pull(void)
{
long end_time;
benchmark_timer_t end_time;
int execute = 1;
status = 0;
+24 -24
View File
@@ -45,8 +45,8 @@ static pthread_mutexattr_t attr;
static void benchmark_create_pthread_mutexattr(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_mutexattr_init( &attr );
@@ -65,8 +65,8 @@ static void benchmark_create_pthread_mutexattr(void)
static void benchmark_pthread_mutexattr_setprioceiling(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_mutexattr_setprioceiling( &attr, SCHED_FIFO);
@@ -85,9 +85,9 @@ static void benchmark_pthread_mutexattr_setprioceiling(void)
static void benchmark_pthread_mutexattr_getprioceiling(void)
{
long end_time;
int status;
int prioceiling;
benchmark_timer_t end_time;
int status;
int prioceiling;
benchmark_timer_initialize();
status = pthread_mutexattr_getprioceiling( &attr, &prioceiling);
@@ -107,8 +107,8 @@ static void benchmark_pthread_mutexattr_getprioceiling(void)
static void benchmark_pthread_mutexattr_setprotocol(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_mutexattr_setprotocol( &attr, PTHREAD_PRIO_INHERIT );
@@ -127,9 +127,9 @@ static void benchmark_pthread_mutexattr_setprotocol(void)
static void benchmark_pthread_mutexattr_getprotocol(void)
{
long end_time;
int status;
int protocol;
benchmark_timer_t end_time;
int status;
int protocol;
benchmark_timer_initialize();
status = pthread_mutexattr_getprotocol( &attr, &protocol );
@@ -149,8 +149,8 @@ static void benchmark_pthread_mutexattr_getprotocol(void)
static void benchmark_pthread_mutexattr_setpshared(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_mutexattr_setpshared( &attr, PTHREAD_PROCESS_PRIVATE );
@@ -169,9 +169,9 @@ static void benchmark_pthread_mutexattr_setpshared(void)
static void benchmark_pthread_mutexattr_getpshared(void)
{
long end_time;
int status;
int pshared;
benchmark_timer_t end_time;
int status;
int pshared;
benchmark_timer_initialize();
status = pthread_mutexattr_getpshared( &attr, &pshared );
@@ -191,8 +191,8 @@ static void benchmark_pthread_mutexattr_getpshared(void)
static void benchmark_pthread_mutexattr_settype(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_mutexattr_settype( &attr, PTHREAD_MUTEX_DEFAULT );
@@ -211,9 +211,9 @@ static void benchmark_pthread_mutexattr_settype(void)
static void benchmark_pthread_mutexattr_gettype(void)
{
long end_time;
int status;
int type;
benchmark_timer_t end_time;
int status;
int type;
benchmark_timer_initialize();
status = pthread_mutexattr_gettype( &attr, &type );
@@ -233,8 +233,8 @@ static void benchmark_pthread_mutexattr_gettype(void)
static void benchmark_destroy_pthread_mutexattr(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_mutexattr_destroy( &attr );
+2 -2
View File
@@ -45,8 +45,8 @@ static void initRoutine(void)
static void benchmark_first_time(void)
{
long end_time;
int status;
benchmark_timer_t end_time;
int status;
benchmark_timer_initialize();
status = pthread_once( &once_control, initRoutine );