summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_mutexattr_destroy.c
diff options
context:
space:
mode:
authorAlexander Langer <alex@FreeBSD.org>1997-11-25 01:29:16 +0000
committerAlexander Langer <alex@FreeBSD.org>1997-11-25 01:29:16 +0000
commit09bb0da60cdda81d524e1252636e5ae5d01e6b56 (patch)
tree7df2107cb14b747d86e7667a8e44591c95fe05ea /lib/libpthread/thread/thr_mutexattr_destroy.c
parent3234f7c1cc2d1adb7150b06de37c92a76bafc5fa (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_mutexattr_destroy.c')
-rw-r--r--lib/libpthread/thread/thr_mutexattr_destroy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_mutexattr_destroy.c b/lib/libpthread/thread/thr_mutexattr_destroy.c
index cf2e09f44e23..5642cbef589d 100644
--- a/lib/libpthread/thread/thr_mutexattr_destroy.c
+++ b/lib/libpthread/thread/thr_mutexattr_destroy.c
@@ -40,8 +40,7 @@ int pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
{
int ret;
if (attr == NULL || *attr == NULL) {
- errno = EINVAL;
- ret = -1;
+ ret = EINVAL;
} else {
free(*attr);
*attr = NULL;