summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread/uthread_attr_setprio.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-08-10 14:37:21 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-08-10 14:37:21 +0000
commite74d8b0e63cc105424cabde08fe5f128e82ff1ca (patch)
tree0167b546e7b01accf441f51ee7538e059f1e5bf6 /lib/libpthread/uthread/uthread_attr_setprio.c
parent2a1ce14bf84160e4d843fe59733cfa3f7ae1ae25 (diff)
pthread_* do not set errno but returns a errno value.
Diffstat (limited to 'lib/libpthread/uthread/uthread_attr_setprio.c')
-rw-r--r--lib/libpthread/uthread/uthread_attr_setprio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libpthread/uthread/uthread_attr_setprio.c b/lib/libpthread/uthread/uthread_attr_setprio.c
index f36e07208c6..f609560d2ab 100644
--- a/lib/libpthread/uthread/uthread_attr_setprio.c
+++ b/lib/libpthread/uthread/uthread_attr_setprio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_attr_setprio.c,v 1.3 1999/11/25 07:01:32 d Exp $ */
+/* $OpenBSD: uthread_attr_setprio.c,v 1.4 2001/08/10 14:37:20 fgsch Exp $ */
/*
* Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -41,8 +41,7 @@ int pthread_attr_setprio(pthread_attr_t *attr, int priority)
{
int ret;
if (attr == NULL || *attr == NULL) {
- errno = EINVAL;
- ret = -1;
+ ret = EINVAL;
} else {
(*attr)->prio = priority;
ret = 0;