Avoid warning "cast to pointer from integer of different size"
Diego Elio 'Flameeyes' Pettenò
PATCH 1/2 Avoid warning "cast to pointer from integer of different size"
--- src/func_tests/test_1_to_1_threads.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
src/func_tests/test_1_to_1_threads.c +1 -1
@@ -174,7 +174,7 @@ main(void)for ( i =0 ; i <THREAD_SND_RCV_LOOPS ; i++ ) {for (cnt =1 ; cnt <THREADS ; cnt++) { status =pthread_create (&thread[cnt], &attr, - (void *)relay, (void *)cnt); + (void *)relay, (void *)(long )cnt);if (status) tst_brkm(TBROK, tst_exit, "pthread_create " "failed status:%d, errno:%d", status,
Signature · 1 line
1.7.1