Chromium Code Reviews

Side by Side Diff: fusl/src/thread/pthread_condattr_setclock.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.
Jump to:
View unified diff |
OLDNEW
1 #include "pthread_impl.h" 1 #include "pthread_impl.h"
2 2
3 int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk) 3 int pthread_condattr_setclock(pthread_condattr_t* a, clockid_t clk) {
4 { 4 if (clk < 0 || clk - 2U < 2)
5 » if (clk < 0 || clk-2U < 2) return EINVAL; 5 return EINVAL;
6 » a->__attr &= 0x80000000; 6 a->__attr &= 0x80000000;
7 » a->__attr |= clk; 7 a->__attr |= clk;
8 » return 0; 8 return 0;
9 } 9 }
OLDNEW

Powered by Google App Engine