projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
floating point environment, untested
[oweals/musl.git]
/
src
/
thread
/
pthread_condattr_setclock.c
diff --git
a/src/thread/pthread_condattr_setclock.c
b/src/thread/pthread_condattr_setclock.c
index bf7455238c76a1779eeb194e9c1d8f3b509fd2c4..cd2cecc98bca6b52a6b02e6518cc1ef398dbd9c6 100644
(file)
--- a/
src/thread/pthread_condattr_setclock.c
+++ b/
src/thread/pthread_condattr_setclock.c
@@
-2,7
+2,7
@@
int pthread_condattr_setclock(pthread_condattr_t *a, clockid_t clk)
{
- if (clk < 0) return EINVAL;
+ if (clk < 0
|| clk-2U < 2
) return EINVAL;
*a &= 0x80000000;
*a |= clk;
return 0;