From 05cefb83e22c08aedf5d3b893ad387eb6424faba Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 28 Mar 2018 00:50:04 +0200 Subject: Fix coding style --- pthread/pt-cancel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pthread/pt-cancel.c') 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); -- cgit v1.2.3