diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 12:47:54 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 12:47:54 +0200 |
commit | fb9ace04f816406b1537d487d71d0b8e897aab4c (patch) | |
tree | 200919ec5471363e77ade64a4bdaf20bddf34fdf | |
parent | 8a1b58a6c8a0827d53838669a35e3fb1c23e07dd (diff) |
Fix coding style
-rw-r--r-- | forward.c | 36 |
1 files changed, 18 insertions, 18 deletions
@@ -170,13 +170,13 @@ atfork_pthread_prepare (void) return; while(1) - { - if (last_handler->prepare != NULL) - last_handler->prepare (); - if (last_handler == handlers) - break; - last_handler = last_handler->prev; - } + { + if (last_handler->prepare != NULL) + last_handler->prepare (); + if (last_handler == handlers) + break; + last_handler = last_handler->prev; + } } text_set_element (_hurd_atfork_prepare_hook, atfork_pthread_prepare); @@ -190,11 +190,11 @@ atfork_pthread_parent (void) __mutex_unlock (&atfork_lock); while (handlers) - { - if (handlers->parent != NULL) - handlers->parent (); - handlers = handlers->next; - } + { + if (handlers->parent != NULL) + handlers->parent (); + handlers = handlers->next; + } } text_set_element (_hurd_atfork_parent_hook, atfork_pthread_parent); @@ -208,11 +208,11 @@ atfork_pthread_child (void) __mutex_unlock (&atfork_lock); while (handlers) - { - if (handlers->child != NULL) - handlers->child (); - handlers = handlers->next; - } + { + if (handlers->child != NULL) + handlers->child (); + handlers = handlers->next; + } } text_set_element (_hurd_atfork_child_hook, atfork_pthread_child); @@ -236,7 +236,7 @@ __register_atfork ( __mutex_lock (&atfork_lock); new->next = fork_handlers; if (fork_handlers) - fork_handlers->prev = new; + fork_handlers->prev = new; fork_handlers = new; if (!fork_last_handler) fork_last_handler = new; |