summaryrefslogtreecommitdiff
path: root/libgcompat/pthread.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-14 18:28:35 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-14 18:28:35 -0600
commitd40369b0e09e4e2228ebff305067ec2d99220848 (patch)
tree0839bc088f3f0b577e0badddab745fa9f3c94dd4 /libgcompat/pthread.c
parent28748009c0dc553e2fe5e6253e7615cf89d2b7ef (diff)
downloadgcompat-d40369b0e09e4e2228ebff305067ec2d99220848.tar.gz
gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.tar.bz2
gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.tar.xz
gcompat-d40369b0e09e4e2228ebff305067ec2d99220848.zip
global: Format the code consistently
* Apply clang-format. * Change all comments to the same style. * Add braces as dictated by the coding style guidelines. Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'libgcompat/pthread.c')
-rw-r--r--libgcompat/pthread.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/libgcompat/pthread.c b/libgcompat/pthread.c
index ddfc570..52daceb 100644
--- a/libgcompat/pthread.c
+++ b/libgcompat/pthread.c
@@ -1,15 +1,19 @@
#include <pthread.h>
-int __register_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) {
+int __register_atfork(void (*prepare)(void), void (*parent)(void),
+ void (*child)(void))
+{
return pthread_atfork(prepare, parent, child);
}
-int register_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) __attribute__ ((weak, alias("__register_atfork")));
+int register_atfork(void (*prepare)(void), void (*parent)(void),
+ void (*child)(void))
+ __attribute__((weak, alias("__register_atfork")));
-
-void __pthread_register_cancel(void *buf) {
+void __pthread_register_cancel(void *buf)
+{
}
-
-void __pthread_unregister_cancel(void *buf) {
+void __pthread_unregister_cancel(void *buf)
+{
}