summaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-25 15:31:15 +0000
committerrpj <rpj>1998-07-25 15:31:15 +0000
commit119b33b180c8b125ea0dee4e0181f444fc7278d6 (patch)
treeb693d77f10213babad1580e718e8d7594e1f6951 /sync.c
parent0830eed6a52cc9386913075dcc5b00de2596624b (diff)
Sun Jul 26 00:09:59 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* signal.c (pthread_sigmask): Rename "this" to "us" and fix some minor syntax errors. Declare "us" and initialise it. * sync.c (pthread_detach): Rename "this" to "target".
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync.c b/sync.c
index 49efcdf..721574e 100644
--- a/sync.c
+++ b/sync.c
@@ -188,7 +188,7 @@ pthread_detach(pthread_t thread)
/* This is all we do here - the rest is done either when the
thread exits or when pthread_join() exits. Once this is
set it will never be unset. */
- pthread_attr_setdetachedstate(&(this->attr),
+ pthread_attr_setdetachedstate(&(target->attr),
PTHREAD_CREATE_DETACHED);
ret = 0;