Skip to contentSkip to conversation

Avoid warning "cast to pointer from integer of different size"

PATCH New Diego Elio 'Flameeyes' Pettenò 1 participant 1 message Jun 15, 2010 SCTP protocol

lore
Share & tools
lore

Diego Elio 'Flameeyes' Pettenò

#0 lore raw

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
index 84b9fb2..bc843df 100644
@@ -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