ecore thread - fix warn - callback prototypes to match correct type
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Wed, 7 Nov 2018 14:33:27 +0000 (14:33 +0000)
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>
Tue, 20 Nov 2018 06:56:20 +0000 (15:56 +0900)
we pass void *'s to these cb's not int's or thread handled (whatever
typt they may be). so cast inside func not use wrong type.

src/lib/ecore/ecore_thread.c

index 8c95dd9..eef9d3d 100644 (file)
@@ -214,8 +214,9 @@ _ecore_thread_data_free(void *data)
 }
 
 void
-_ecore_thread_join(PH(thread))
+_ecore_thread_join(void *data)
 {
+   PH(thread) = (uintptr_t)data;
    DBG("joining thread=%" PRIu64, (uint64_t)thread);
    PHJ(thread);
 }