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

Unified Diff: fusl/src/stdio/fileno.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/stdio/fileno.c
diff --git a/fusl/src/stdio/fileno.c b/fusl/src/stdio/fileno.c
index ba7f9391b1ec9baa6023f9a66f569b46a1f85ba2..9d13901bbdc7597b5ac9ece3a80b2fe0431a3c19 100644
--- a/fusl/src/stdio/fileno.c
+++ b/fusl/src/stdio/fileno.c
@@ -1,13 +1,12 @@
#include "stdio_impl.h"
-int fileno(FILE *f)
-{
- /* f->fd never changes, but the lock must be obtained and released
- * anyway since this function cannot return while another thread
- * holds the lock. */
- FLOCK(f);
- FUNLOCK(f);
- return f->fd;
+int fileno(FILE* f) {
+ /* f->fd never changes, but the lock must be obtained and released
+ * anyway since this function cannot return while another thread
+ * holds the lock. */
+ FLOCK(f);
+ FUNLOCK(f);
+ return f->fd;
}
weak_alias(fileno, fileno_unlocked);

Powered by Google App Engine
This is Rietveld 408576698