Don't call pthread_exit(), returning from RunThread() is equivalent.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 20 Sep 2011 17:48:29 -0400
changeset 5963 fe5d2285dffa
parent 5962 17cadf0c466e
child 5964 1b5c5625a6ca
Don't call pthread_exit(), returning from RunThread() is equivalent.
src/thread/pthread/SDL_systhread.c
--- a/src/thread/pthread/SDL_systhread.c	Tue Sep 20 17:42:58 2011 -0400
+++ b/src/thread/pthread/SDL_systhread.c	Tue Sep 20 17:48:29 2011 -0400
@@ -43,8 +43,7 @@
 RunThread(void *data)
 {
     SDL_RunThread(data);
-    pthread_exit((void *) 0);
-    return ((void *) 0);        /* Prevent compiler warning */
+    return NULL;
 }
 
 int