summaryrefslogtreecommitdiff
path: root/signal.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 /signal.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 'signal.c')
-rw-r--r--signal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/signal.c b/signal.c
index d7ec7ae..888319d 100644
--- a/signal.c
+++ b/signal.c
@@ -35,13 +35,14 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
if (set != NULL)
{
+ _pthread_threads_thread_t * us = _PTHREAD_THIS;
int i;
/* FIXME: this code assumes that sigmask is an even multiple of
the size of a long integer. */
unsigned long *src = set;
- unsigned long *dest = this->attr->sigmask;
+ unsigned long *dest = us->attr.sigmask;
switch (how)
{
@@ -60,7 +61,7 @@ pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
}
case SIG_SET:
/* Replace the whole sigmask. */
- memcpy(this->attr.sigmask, set, sizeof(sigset_t));
+ memcpy(us->attr.sigmask, set, sizeof(sigset_t));
break;
}
}