OSDN Git Service

Fix stupid typing problems
authorEric Andersen <andersen@codepoet.org>
Sun, 6 Jan 2002 08:59:17 +0000 (08:59 -0000)
committerEric Andersen <andersen@codepoet.org>
Sun, 6 Jan 2002 08:59:17 +0000 (08:59 -0000)
libpthread/pthread.c

index d3eb139..bc27aee 100644 (file)
@@ -110,12 +110,12 @@ int pthread_join (pthread_t thread, void **thread_return)
        /* Fixme -- wait for thread and get its return value */
        retval = EXIT_SUCCESS;
        if (thread_return)
-               *thread_return = retval;
+               (int)*thread_return = retval;
        _exit(retval);
 }
 link_warning(pthread_join, "pthread_join is a stub and does not behave properly");
 
 void pthread_exit (void *retval)
 {
-       _exit(retval);
+       _exit(*(int *)retval);
 }