Skip to content

Commit 833c0f7

Browse files
committed
pass NULL as do not care about oldtype
1 parent 642b9d5 commit 833c0f7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎lib/PDL/Core/pdlmagic.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ static void *pthread_perform(void *vp) {
223223
struct ptarg *p = (ptarg *)vp;
224224
PDLDEBUG_f(printf("STARTING THREAD %d (%lu)\n",p->no, (long unsigned)pthread_self()));
225225
pthread_setspecific(p->mag->key,(void *)&(p->no));
226-
int oldtype; /* don't care but must supply */
227-
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, &oldtype);
226+
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
228227
p->error_return = (p->func)(p->t);
229228
PDLDEBUG_f(printf("ENDING THREAD %d (%lu)\n",p->no, (long unsigned)pthread_self()));
230229
return NULL;

0 commit comments

Comments
 (0)