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

Unified Diff: fusl/src/time/utime.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/time/utime.c
diff --git a/fusl/src/time/utime.c b/fusl/src/time/utime.c
index e7592b297809c817a2ec9ca4368be1f37147920b..3f023516386607d717dd4d0860f854899e020dfe 100644
--- a/fusl/src/time/utime.c
+++ b/fusl/src/time/utime.c
@@ -3,9 +3,10 @@
#include <time.h>
#include <fcntl.h>
-int utime(const char *path, const struct utimbuf *times)
-{
- return utimensat(AT_FDCWD, path, times ? ((struct timespec [2]){
- { .tv_sec = times->actime }, { .tv_sec = times->modtime }})
- : 0, 0);
+int utime(const char* path, const struct utimbuf* times) {
+ return utimensat(AT_FDCWD, path,
+ times ? ((struct timespec[2]){{.tv_sec = times->actime},
+ {.tv_sec = times->modtime}})
+ : 0,
+ 0);
}

Powered by Google App Engine
This is Rietveld 408576698