summaryrefslogtreecommitdiff
path: root/pthread/pt-cancel.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 00:50:04 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 00:50:04 +0200
commit05cefb83e22c08aedf5d3b893ad387eb6424faba (patch)
tree20bdecf3032d11716c94afa3a7bb085f5b70493a /pthread/pt-cancel.c
parent85b62d7aaedb24b6ad07d437e5b8560f62d07529 (diff)
Fix coding style
Diffstat (limited to 'pthread/pt-cancel.c')
-rw-r--r--pthread/pt-cancel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread/pt-cancel.c b/pthread/pt-cancel.c
index b7e9a93..9f87724 100644
--- a/pthread/pt-cancel.c
+++ b/pthread/pt-cancel.c
@@ -27,7 +27,7 @@ pthread_cancel (pthread_t t)
struct __pthread *p;
p = __pthread_getid (t);
- if (! p)
+ if (p == NULL)
return ESRCH;
__pthread_mutex_lock (&p->cancel_lock);