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

Side by Side Diff: fusl/src/stdio/ofl.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 unified diff | Download patch
OLDNEW
1 #include "stdio_impl.h" 1 #include "stdio_impl.h"
2 #include "libc.h" 2 #include "libc.h"
3 3
4 static FILE *ofl_head; 4 static FILE* ofl_head;
5 static volatile int ofl_lock[2]; 5 static volatile int ofl_lock[2];
6 6
7 FILE **__ofl_lock() 7 FILE** __ofl_lock() {
8 { 8 LOCK(ofl_lock);
9 » LOCK(ofl_lock); 9 return &ofl_head;
10 » return &ofl_head;
11 } 10 }
12 11
13 void __ofl_unlock() 12 void __ofl_unlock() {
14 { 13 UNLOCK(ofl_lock);
15 » UNLOCK(ofl_lock);
16 } 14 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698