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

Unified Diff: fusl/src/fcntl/openat.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/fcntl/openat.c
diff --git a/fusl/src/fcntl/openat.c b/fusl/src/fcntl/openat.c
index e741336c6f5587d3c4e8db596b41e48f73601a3b..d4fb96cac0bf437e2fb66af3b1464f78411e42d0 100644
--- a/fusl/src/fcntl/openat.c
+++ b/fusl/src/fcntl/openat.c
@@ -3,18 +3,17 @@
#include "syscall.h"
#include "libc.h"
-int openat(int fd, const char *filename, int flags, ...)
-{
- mode_t mode = 0;
+int openat(int fd, const char* filename, int flags, ...) {
+ mode_t mode = 0;
- if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) {
- va_list ap;
- va_start(ap, flags);
- mode = va_arg(ap, mode_t);
- va_end(ap);
- }
+ if ((flags & O_CREAT) || (flags & O_TMPFILE) == O_TMPFILE) {
+ va_list ap;
+ va_start(ap, flags);
+ mode = va_arg(ap, mode_t);
+ va_end(ap);
+ }
- return syscall_cp(SYS_openat, fd, filename, flags|O_LARGEFILE, mode);
+ return syscall_cp(SYS_openat, fd, filename, flags | O_LARGEFILE, mode);
}
LFS64(openat);

Powered by Google App Engine
This is Rietveld 408576698