summaryrefslogtreecommitdiff
path: root/forward.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:03:11 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-03-28 02:03:11 +0200
commit8657c93f0adeefd1b50d54ae30aa0a4ba2d89827 (patch)
tree4fde4d311d435ab0f5413e168f4c99767f7032ef /forward.c
parented3150fb7413fce0321ad88a22de7871a301f7c3 (diff)
Fix coding style
Diffstat (limited to 'forward.c')
-rw-r--r--forward.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/forward.c b/forward.c
index 7c002fe..8fab403 100644
--- a/forward.c
+++ b/forward.c
@@ -194,7 +194,7 @@ atfork_pthread_parent (void)
handlers = fork_handlers;
__libc_lock_unlock (atfork_lock);
- while (handlers)
+ while (handlers != NULL)
{
if (handlers->parent != NULL)
handlers->parent ();
@@ -212,7 +212,7 @@ atfork_pthread_child (void)
handlers = fork_handlers;
__libc_lock_unlock (atfork_lock);
- while (handlers)
+ while (handlers != NULL)
{
if (handlers->child != NULL)
handlers->child ();
@@ -239,7 +239,7 @@ __register_atfork (void (*prepare) (void),
__libc_lock_lock (atfork_lock);
new->next = fork_handlers;
- if (fork_handlers)
+ if (fork_handlers != NULL)
fork_handlers->prev = new;
fork_handlers = new;
if (fork_last_handler == NULL)
@@ -256,7 +256,7 @@ __unregister_atfork (void *dso_handle)
struct atfork **handlers, *prev = NULL, *next;
__libc_lock_lock (atfork_lock);
handlers = &fork_handlers;
- while (*handlers)
+ while (*handlers != NULL)
{
if ((*handlers)->dso_handle == dso_handle)
{
@@ -268,7 +268,7 @@ __unregister_atfork (void *dso_handle)
}
next = (*handlers)->next;
- if (next)
+ if (next != NULL)
next->prev = prev;
*handlers = next;
}