fix warnings and returned value when no pthread
authorVincent Torri <vincent.torri@gmail.com>
Sat, 19 Dec 2009 11:43:44 +0000 (11:43 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 19 Dec 2009 11:43:44 +0000 (11:43 +0000)
SVN revision: 44569

legacy/ecore/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
 }