aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2008-03-20 08:27:14 +0000
committerDavid Xu <davidxu@FreeBSD.org>2008-03-20 08:27:14 +0000
commit48ebe2ebc4216bd24d5ad5e9b69c5d238c143359 (patch)
treea5c8782a2e82af510b8374019ff1eb9ec993de98 /lib
parent879773c18b50638a4e1fa3e3a7660ca6340950c6 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_mutexattr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_mutexattr.c b/lib/libthr/thread/thr_mutexattr.c
index c7bdde2e84cc..9013c82bb177 100644
--- a/lib/libthr/thread/thr_mutexattr.c
+++ b/lib/libthr/thread/thr_mutexattr.c
@@ -132,8 +132,7 @@ _pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
{
int ret;
if (attr == NULL || *attr == NULL || type >= PTHREAD_MUTEX_TYPE_MAX) {
- errno = EINVAL;
- ret = -1;
+ ret = EINVAL;
} else {
(*attr)->m_type = type;
ret = 0;
@@ -167,7 +166,6 @@ _pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
*attr = NULL;
ret = 0;
}
- return(ret);
}
int