summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc_r/include/pthread.h4
-rw-r--r--lib/libc_r/uthread/uthread_rwlockattr.c10
-rw-r--r--lib/libpthread/include/pthread.h4
-rw-r--r--lib/libpthread/uthread/uthread_rwlockattr.c10
4 files changed, 12 insertions, 16 deletions
diff --git a/lib/libc_r/include/pthread.h b/lib/libc_r/include/pthread.h
index d94bbe8173f..7940c9d5b63 100644
--- a/lib/libc_r/include/pthread.h
+++ b/lib/libc_r/include/pthread.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: pthread.h,v 1.9 1999/11/25 07:01:29 d Exp $
+ * $OpenBSD: pthread.h,v 1.10 2000/01/04 22:34:23 alex Exp $
*
* $FreeBSD: pthread.h,v 1.13 1999/07/31 08:36:07 rse Exp $
*/
@@ -269,7 +269,7 @@ int pthread_rwlockattr_init __P((pthread_rwlockattr_t *));
int pthread_rwlockattr_getpshared __P((const pthread_rwlockattr_t *,
int *));
int pthread_rwlockattr_setpshared __P((pthread_rwlockattr_t *,
- int *));
+ int));
int pthread_rwlockattr_destroy __P((pthread_rwlockattr_t *));
pthread_t pthread_self __P((void));
int pthread_setspecific __P((pthread_key_t, const void *));
diff --git a/lib/libc_r/uthread/uthread_rwlockattr.c b/lib/libc_r/uthread/uthread_rwlockattr.c
index 8e7f7a5e1d0..1cc23bfbef4 100644
--- a/lib/libc_r/uthread/uthread_rwlockattr.c
+++ b/lib/libc_r/uthread/uthread_rwlockattr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_rwlockattr.c,v 1.3 1999/11/25 07:01:42 d Exp $ */
+/* $OpenBSD: uthread_rwlockattr.c,v 1.4 2000/01/04 22:34:24 alex Exp $ */
/*-
* Copyright (c) 1998 Alex Nash
* All rights reserved.
@@ -83,15 +83,13 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr)
int
pthread_rwlockattr_setpshared (pthread_rwlockattr_t *rwlockattr,
- int *pshared)
+ int pshared)
{
- int ps = *pshared;
-
/* only PTHREAD_PROCESS_PRIVATE is supported */
- if (ps != PTHREAD_PROCESS_PRIVATE)
+ if (pshared != PTHREAD_PROCESS_PRIVATE)
return(EINVAL);
- (*rwlockattr)->pshared = ps;
+ (*rwlockattr)->pshared = pshared;
return(0);
}
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h
index d94bbe8173f..7940c9d5b63 100644
--- a/lib/libpthread/include/pthread.h
+++ b/lib/libpthread/include/pthread.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: pthread.h,v 1.9 1999/11/25 07:01:29 d Exp $
+ * $OpenBSD: pthread.h,v 1.10 2000/01/04 22:34:23 alex Exp $
*
* $FreeBSD: pthread.h,v 1.13 1999/07/31 08:36:07 rse Exp $
*/
@@ -269,7 +269,7 @@ int pthread_rwlockattr_init __P((pthread_rwlockattr_t *));
int pthread_rwlockattr_getpshared __P((const pthread_rwlockattr_t *,
int *));
int pthread_rwlockattr_setpshared __P((pthread_rwlockattr_t *,
- int *));
+ int));
int pthread_rwlockattr_destroy __P((pthread_rwlockattr_t *));
pthread_t pthread_self __P((void));
int pthread_setspecific __P((pthread_key_t, const void *));
diff --git a/lib/libpthread/uthread/uthread_rwlockattr.c b/lib/libpthread/uthread/uthread_rwlockattr.c
index 8e7f7a5e1d0..1cc23bfbef4 100644
--- a/lib/libpthread/uthread/uthread_rwlockattr.c
+++ b/lib/libpthread/uthread/uthread_rwlockattr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_rwlockattr.c,v 1.3 1999/11/25 07:01:42 d Exp $ */
+/* $OpenBSD: uthread_rwlockattr.c,v 1.4 2000/01/04 22:34:24 alex Exp $ */
/*-
* Copyright (c) 1998 Alex Nash
* All rights reserved.
@@ -83,15 +83,13 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr)
int
pthread_rwlockattr_setpshared (pthread_rwlockattr_t *rwlockattr,
- int *pshared)
+ int pshared)
{
- int ps = *pshared;
-
/* only PTHREAD_PROCESS_PRIVATE is supported */
- if (ps != PTHREAD_PROCESS_PRIVATE)
+ if (pshared != PTHREAD_PROCESS_PRIVATE)
return(EINVAL);
- (*rwlockattr)->pshared = ps;
+ (*rwlockattr)->pshared = pshared;
return(0);
}