summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-06 08:59:17 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-06 08:59:17 +0000
commitb55793de837fed3ecda88ead8a482fb6a5280cca (patch)
treee5dbed0b5c58f0003b1f1e41cffda29b9223d942
parent799217d26e5aa1a4eecfc94550736440c27f737b (diff)
Fix stupid typing problems
-rw-r--r--libpthread/pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/pthread.c b/libpthread/pthread.c
index d3eb13961..bc27aee3f 100644
--- a/libpthread/pthread.c
+++ b/libpthread/pthread.c
@@ -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);
}