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

Unified Diff: fusl/src/stdio/getc.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/getc.c
diff --git a/fusl/src/stdio/getc.c b/fusl/src/stdio/getc.c
index b3f351d1d7e45e5f4ef9ad91c868981e6aaf1929..fbedf89a319e2606ece7b8ca391212175fb3d8c0 100644
--- a/fusl/src/stdio/getc.c
+++ b/fusl/src/stdio/getc.c
@@ -1,13 +1,12 @@
#include "stdio_impl.h"
-int getc(FILE *f)
-{
- int c;
- if (f->lock < 0 || !__lockfile(f))
- return getc_unlocked(f);
- c = getc_unlocked(f);
- __unlockfile(f);
- return c;
+int getc(FILE* f) {
+ int c;
+ if (f->lock < 0 || !__lockfile(f))
+ return getc_unlocked(f);
+ c = getc_unlocked(f);
+ __unlockfile(f);
+ return c;
}
weak_alias(getc, _IO_getc);

Powered by Google App Engine
This is Rietveld 408576698