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

Unified Diff: fusl/src/time/ctime_r.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/ctime_r.c
diff --git a/fusl/src/time/ctime_r.c b/fusl/src/time/ctime_r.c
index d2260a165a2e88112f0c74e5f2d13628af09e2ff..e1d32bdeccbc80f9ff1a5ad916cc2d92853ff3a1 100644
--- a/fusl/src/time/ctime_r.c
+++ b/fusl/src/time/ctime_r.c
@@ -1,8 +1,7 @@
#include <time.h>
-char *ctime_r(const time_t *t, char *buf)
-{
- struct tm tm;
- localtime_r(t, &tm);
- return asctime_r(&tm, buf);
+char* ctime_r(const time_t* t, char* buf) {
+ struct tm tm;
+ localtime_r(t, &tm);
+ return asctime_r(&tm, buf);
}

Powered by Google App Engine
This is Rietveld 408576698