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

Unified Diff: fusl/src/stdio/rename.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/rename.c
diff --git a/fusl/src/stdio/rename.c b/fusl/src/stdio/rename.c
index 04c90c01343a4b84beb5cf56b348e5d5041905ed..c94be0750c7bc971232addc16f44052fbc21fb84 100644
--- a/fusl/src/stdio/rename.c
+++ b/fusl/src/stdio/rename.c
@@ -2,11 +2,10 @@
#include <fcntl.h>
#include "syscall.h"
-int rename(const char *old, const char *new)
-{
+int rename(const char* old, const char* new) {
#ifdef SYS_rename
- return syscall(SYS_rename, old, new);
+ return syscall(SYS_rename, old, new);
#else
- return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
+ return syscall(SYS_renameat, AT_FDCWD, old, AT_FDCWD, new);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698