summaryrefslogtreecommitdiff
path: root/src/tet3/apithr/thr_create.c.orig
diff options
context:
space:
mode:
Diffstat (limited to 'src/tet3/apithr/thr_create.c.orig')
-rw-r--r--src/tet3/apithr/thr_create.c.orig22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/tet3/apithr/thr_create.c.orig b/src/tet3/apithr/thr_create.c.orig
index 6262b146..c8ab2fc1 100644
--- a/src/tet3/apithr/thr_create.c.orig
+++ b/src/tet3/apithr/thr_create.c.orig
@@ -299,7 +299,7 @@ int sig;
/* wrong thread received SIGABRT signal - try to do what it
would have done */
- (void) sigaction(SIGABRT, &oldsigact, (struct sigaction *)NULL);
+ sigaction(SIGABRT, &oldsigact, (struct sigaction *)NULL);
if (oldsigact.sa_handler == SIG_DFL)
{
abort();
@@ -327,7 +327,7 @@ int sig;
}
if (tet_child > 0)
- (void) tet_killw(tet_child, KILLWAIT);
+ tet_killw(tet_child, KILLWAIT);
TET_THR_EXIT((void *)0);
}
@@ -348,7 +348,7 @@ int signum;
MTX_LOCK(&tet_thrtab_mtx);
- (void) TET_COND_INIT(&thrwait_cv);
+ TET_COND_INIT(&thrwait_cv);
for (ttp = thrtab; ttp; ttp = ttpnext)
{
@@ -385,19 +385,19 @@ int signum;
*/
if (!TET_THR_EQUAL(ttp->tid, tid2))
- (void) TET_THR_JOIN(ttp->tid, (void **) NULL);
+ TET_THR_JOIN(ttp->tid, (void **) NULL);
TET_MUTEX_LOCK(&tet_thrwait_mtx);
joined = 1;
- (void) TET_COND_SIGNAL(&thrwait_cv);
+ TET_COND_SIGNAL(&thrwait_cv);
TET_MUTEX_UNLOCK(&tet_thrwait_mtx);
- (void) TET_THR_JOIN(tid2, (void **) NULL);
+ TET_THR_JOIN(tid2, (void **) NULL);
tet_listremove((struct llist **) &thrtab, (struct llist *) ttp);
TRACE2(tet_Tbuf, 6, "free thrtab entry = %s", tet_i2x(ttp));
free((void *)ttp);
}
thrtab = NULL;
- (void) TET_COND_DESTROY(&thrwait_cv);
+ TET_COND_DESTROY(&thrwait_cv);
MTX_UNLOCK(&tet_thrtab_mtx);
}
@@ -439,8 +439,8 @@ void *arg;
target_tid = carg->tid;
sa.sa_handler = make_thr_exit;
sa.sa_flags = 0;
- (void) sigemptyset(&sa.sa_mask);
- (void) sigaction(SIGABRT, &sa, &oldsigact);
+ sigemptyset(&sa.sa_mask);
+ sigaction(SIGABRT, &sa, &oldsigact);
err = TET_THR_KILL(carg->tid, SIGABRT);
switch (err)
{
@@ -448,7 +448,7 @@ void *arg;
break;
case ESRCH:
/* thread has gone away already */
- (void) sigaction(SIGABRT, &oldsigact, (struct sigaction *)0);
+ sigaction(SIGABRT, &oldsigact, (struct sigaction *)0);
return (void *)0;
default:
fatal(err, "TET_THR_KILL() failed in cln_thr2()", (char *)0);
@@ -468,7 +468,7 @@ void *arg;
err = 0;
TET_MUTEX_UNLOCK(&tet_thrwait_mtx);
if (err == 0)
- (void) sigaction(SIGABRT, &oldsigact, (struct sigaction *)0);
+ sigaction(SIGABRT, &oldsigact, (struct sigaction *)0);
else if (err != ETIME)
fatal(err, "TET_COND_TIMEDWAIT() failed in cln_thr2()",
(char *) 0);