task_setcancelstate.c:Fix style errors.
This commit is contained in:
parent
5e4a3223a4
commit
667fede9ea
|
@ -135,7 +135,8 @@ int task_setcancelstate(int state, FAR int *oldstate)
|
||||||
tcb->flags &= ~TCB_FLAG_CANCEL_PENDING;
|
tcb->flags &= ~TCB_FLAG_CANCEL_PENDING;
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_PTHREAD
|
#ifndef CONFIG_DISABLE_PTHREAD
|
||||||
if ((tcb->flags & TCB_FLAG_TTYPE_MASK) == TCB_FLAG_TTYPE_PTHREAD)
|
if ((tcb->flags & TCB_FLAG_TTYPE_MASK) ==
|
||||||
|
TCB_FLAG_TTYPE_PTHREAD)
|
||||||
{
|
{
|
||||||
pthread_exit(PTHREAD_CANCELED);
|
pthread_exit(PTHREAD_CANCELED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue