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

Unified Diff: fusl/src/thread/thrd_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/thread/thrd_sleep.c
diff --git a/fusl/src/thread/thrd_sleep.c b/fusl/src/thread/thrd_sleep.c
index e8dfe400cb701f7ae470b192ec04c495a7bfbb18..f8eedfe64a621053fdd1c036d0cfa48945a5eb6b 100644
--- a/fusl/src/thread/thrd_sleep.c
+++ b/fusl/src/thread/thrd_sleep.c
@@ -2,12 +2,14 @@
#include <errno.h>
#include "syscall.h"
-int thrd_sleep(const struct timespec *req, struct timespec *rem)
-{
- int ret = __syscall(SYS_nanosleep, req, rem);
- switch (ret) {
- case 0: return 0;
- case -EINTR: return -1; /* value specified by C11 */
- default: return -2;
- }
+int thrd_sleep(const struct timespec* req, struct timespec* rem) {
+ int ret = __syscall(SYS_nanosleep, req, rem);
+ switch (ret) {
+ case 0:
+ return 0;
+ case -EINTR:
+ return -1; /* value specified by C11 */
+ default:
+ return -2;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698