diff --git a/test/rpc_client/rpc_client_test.c b/test/rpc_client/rpc_client_test.c index 68ca1f657..2f23d41e5 100644 --- a/test/rpc_client/rpc_client_test.c +++ b/test/rpc_client/rpc_client_test.c @@ -230,7 +230,7 @@ int main(int argc, char **argv) pthread_t srv_tid, client_tid; int srv_tid_valid; int client_tid_valid = -1; - int th_rc = INT_MIN; + intptr_t th_rc = INTPTR_MIN; int rc = 0, err_cnt = 0; sem_init(&g_rpc_server_th_listening, 0, 0); @@ -262,7 +262,7 @@ out: fprintf(stderr, "pthread_join() on cliennt thread failed (rc: %d)\n", rc); err_cnt++; } else if (th_rc) { - fprintf(stderr, "cliennt thread failed reported failure(thread rc: %d)\n", th_rc); + fprintf(stderr, "cliennt thread failed reported failure(thread rc: %d)\n", (int)th_rc); err_cnt++; } } @@ -281,7 +281,7 @@ out: fprintf(stderr, "pthread_join() on cliennt thread failed (rc: %d)\n", rc); err_cnt++; } else if (th_rc) { - fprintf(stderr, "cliennt thread failed reported failure(thread rc: %d)\n", th_rc); + fprintf(stderr, "cliennt thread failed reported failure(thread rc: %d)\n", (int)th_rc); err_cnt++; } }