summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2017-01-19 16:25:56 +0000
committerRobert Mustacchi <rm@joyent.com>2017-01-20 23:27:19 +0000
commit8682a7e091ccd625f69f32e89d09028e33504f7f (patch)
treeb394b975c5fd6eb45fdef5ec7c58c145bac93e03 /usr/src/lib/libc
parent143399fdddff5088b72e3e318dec9091d04e95f0 (diff)
downloadillumos-joyent-8682a7e091ccd625f69f32e89d09028e33504f7f.tar.gz
OS-5905 thrd_equal implements the wrong specification
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Approved by: Patrick Mooney <patrick.mooney@joyent.com>
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/threads/c11_thr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/lib/libc/port/threads/c11_thr.c b/usr/src/lib/libc/port/threads/c11_thr.c
index 6a8c6d157e..a33fa12743 100644
--- a/usr/src/lib/libc/port/threads/c11_thr.c
+++ b/usr/src/lib/libc/port/threads/c11_thr.c
@@ -10,7 +10,7 @@
*/
/*
- * Copyright 2016 Joyent, Inc.
+ * Copyright 2017 Joyent, Inc.
*/
#include <pthread.h>
@@ -156,7 +156,7 @@ mtx_lock(mtx_t *mtx)
int
mtx_timedlock(mtx_t *_RESTRICT_KYWD mtx,
- const struct timespec *_RESTRICT_KYWD abstime)
+ const struct timespec *_RESTRICT_KYWD abstime)
{
int ret;
@@ -221,7 +221,7 @@ thrd_detach(thrd_t thr)
int
thrd_equal(thrd_t t1, thrd_t t2)
{
- return (!pthread_equal(t1, t2));
+ return (pthread_equal(t1, t2));
}
_NORETURN_KYWD void