diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:39:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:39:41 +0200 |
commit | 3849b385c44d8d8a2332c826e18d31cff7327e45 (patch) | |
tree | 7c00561a25e703446598315326a13a3a8b9a01b2 /pthread | |
parent | 08ed02b9705b7bce1b8d79da6455d59a31295212 (diff) |
Fix coding style
Diffstat (limited to 'pthread')
-rw-r--r-- | pthread/pt-create.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c index 0b70f77..f5c06ff 100644 --- a/pthread/pt-create.c +++ b/pthread/pt-create.c @@ -101,13 +101,13 @@ __pthread_create_internal (struct __pthread **thread, setup = attr ? attr : &__pthread_default_attr; stacksize = setup->__stacksize; - if (!stacksize) + if (stacksize == 0) { struct rlimit rlim; __getrlimit (RLIMIT_STACK, &rlim); if (rlim.rlim_cur != RLIM_INFINITY) stacksize = rlim.rlim_cur; - if (!stacksize) + if (stacksize == 0) stacksize = PTHREAD_STACK_DEFAULT; } @@ -146,7 +146,7 @@ __pthread_create_internal (struct __pthread **thread, goto failed_thread_alloc; pthread->tcb = _dl_allocate_tls (NULL); - if (!pthread->tcb) + if (pthread->tcb == NULL) { err = ENOMEM; goto failed_thread_tls_alloc; |