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

Unified Diff: fusl/src/unistd/sleep.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/unistd/sleep.c
diff --git a/fusl/src/unistd/sleep.c b/fusl/src/unistd/sleep.c
index d64509413e54b5f408a6285ad527d3977cb46556..e54f669900eab667bd51db50709dba055294dc2e 100644
--- a/fusl/src/unistd/sleep.c
+++ b/fusl/src/unistd/sleep.c
@@ -1,10 +1,9 @@
#include <unistd.h>
#include <time.h>
-unsigned sleep(unsigned seconds)
-{
- struct timespec tv = { .tv_sec = seconds, .tv_nsec = 0 };
- if (nanosleep(&tv, &tv))
- return tv.tv_sec;
- return 0;
+unsigned sleep(unsigned seconds) {
+ struct timespec tv = {.tv_sec = seconds, .tv_nsec = 0};
+ if (nanosleep(&tv, &tv))
+ return tv.tv_sec;
+ return 0;
}

Powered by Google App Engine
This is Rietveld 408576698