summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/misc.c b/misc.c
index f2f5695..aa78752 100644
--- a/misc.c
+++ b/misc.c
@@ -383,19 +383,19 @@ pthreadCancelableTimedWait (HANDLE waitHandle, DWORD timeout)
pthread_t
_pthread_new (void)
{
- pthread_t new;
+ pthread_t t;
- new = (pthread_t) calloc (1, sizeof (*new));
+ t = (pthread_t) calloc (1, sizeof (*t));
- if (new != NULL)
+ if (t != NULL)
{
- new->detachState = PTHREAD_CREATE_JOINABLE;
- new->cancelState = PTHREAD_CANCEL_ENABLE;
- new->cancelType = PTHREAD_CANCEL_DEFERRED;
- new->cancelLock = PTHREAD_MUTEX_INITIALIZER;
+ t->detachState = PTHREAD_CREATE_JOINABLE;
+ t->cancelState = PTHREAD_CANCEL_ENABLE;
+ t->cancelType = PTHREAD_CANCEL_DEFERRED;
+ t->cancelLock = PTHREAD_MUTEX_INITIALIZER;
}
- return new;
+ return t;
}