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

Unified Diff: fusl/src/unistd/usleep.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/usleep.c
diff --git a/fusl/src/unistd/usleep.c b/fusl/src/unistd/usleep.c
index 6c96652691e0dabacacde4885f74466d2772a661..dc7327d833eecc967a7b1dc52869dc04e08692b1 100644
--- a/fusl/src/unistd/usleep.c
+++ b/fusl/src/unistd/usleep.c
@@ -2,11 +2,8 @@
#include <unistd.h>
#include <time.h>
-int usleep(unsigned useconds)
-{
- struct timespec tv = {
- .tv_sec = useconds/1000000,
- .tv_nsec = (useconds%1000000)*1000
- };
- return nanosleep(&tv, &tv);
+int usleep(unsigned useconds) {
+ struct timespec tv = {.tv_sec = useconds / 1000000,
+ .tv_nsec = (useconds % 1000000) * 1000};
+ return nanosleep(&tv, &tv);
}

Powered by Google App Engine
This is Rietveld 408576698