]> granicus.if.org Git - musl/commitdiff
fix misspelled PTHREAD_CANCELED constant
authorRich Felker <dalias@aerifal.cx>
Sat, 2 Apr 2011 00:48:02 +0000 (20:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Sat, 2 Apr 2011 00:48:02 +0000 (20:48 -0400)
include/pthread.h
src/thread/pthread_create.c

index 763336690e50c32916297d8d72b4f1bd4fd88f15..43754ddd7b47cd31b84c8c497acf0a6cad362545 100644 (file)
@@ -65,7 +65,7 @@ extern "C" {
 #define PTHREAD_CANCEL_DEFERRED 0
 #define PTHREAD_CANCEL_ASYNCHRONOUS 1
 
-#define PTHREAD_CANCELLED ((void *)-1)
+#define PTHREAD_CANCELED ((void *)-1)
 
 
 #define PTHREAD_BARRIER_SERIAL_THREAD (-1)
index 18ee64d60bb49827c9773c61c3d6a14e4f08e2eb..7cd57d8e8dbaa390d8967ff620cf4a4a51f64f7a 100644 (file)
@@ -13,7 +13,7 @@ void __pthread_unwind_next(struct __ptcb *cb)
        if (cb->__next) longjmp((void *)cb->__next->__jb, 1);
 
        self = pthread_self();
-       if (self->cancel) self->result = PTHREAD_CANCELLED;
+       if (self->cancel) self->result = PTHREAD_CANCELED;
 
        LOCK(&self->exitlock);