summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 12:47:54 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 12:47:54 +0200
commitfb9ace04f816406b1537d487d71d0b8e897aab4c (patch)
tree200919ec5471363e77ade64a4bdaf20bddf34fdf
parent8a1b58a6c8a0827d53838669a35e3fb1c23e07dd (diff)
Fix coding style
-rw-r--r--forward.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/forward.c b/forward.c
index a2139a2..79b2bec 100644
--- a/forward.c
+++ b/forward.c
@@ -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;