fix warnings and returned value when no pthread
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 19 Dec 2009 11:43:44 +0000 (11:43 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 19 Dec 2009 11:43:44 +0000 (11:43 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@44569 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index 86cab99..e4498e5 100644 (file)
@@ -268,10 +268,10 @@ ecore_thread_run(void (*func_heavy)(void *data),
      If no thread and as we don't want to break app that rely on this
      facility, we will lock the interface until we are done.
     */
-   func_heavy(data);
-   func_end(data);
+   func_heavy((void *)data);
+   func_end((void *)data);
 
-   return EINA_TRUE;
+   return NULL;
 #endif
 }