Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Unified Diff: fusl/src/thread/pthread_mutex_init.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fusl/src/thread/pthread_mutex_init.c
diff --git a/fusl/src/thread/pthread_mutex_init.c b/fusl/src/thread/pthread_mutex_init.c
index acf45a74687bcf3d8dfb6ac7d4e9107d922b4fe2..dad438ce620df86b4fde45137bf27dbfba2e0cda 100644
--- a/fusl/src/thread/pthread_mutex_init.c
+++ b/fusl/src/thread/pthread_mutex_init.c
@@ -1,8 +1,9 @@
#include "pthread_impl.h"
-int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a)
-{
- *m = (pthread_mutex_t){0};
- if (a) m->_m_type = a->__attr;
- return 0;
+int pthread_mutex_init(pthread_mutex_t* restrict m,
+ const pthread_mutexattr_t* restrict a) {
+ *m = (pthread_mutex_t){0};
+ if (a)
+ m->_m_type = a->__attr;
+ return 0;
}

Powered by Google App Engine
This is Rietveld 408576698