diff options
author | Alex Feldman <alex@cvs.openbsd.org> | 2000-01-04 22:34:25 +0000 |
---|---|---|
committer | Alex Feldman <alex@cvs.openbsd.org> | 2000-01-04 22:34:25 +0000 |
commit | f210194d90a27103d11a2d84d1e25645e839bb3e (patch) | |
tree | dc487c7808c3e3def5ec77b7f1b179415fc70ba4 /lib/libpthread | |
parent | 7805e697b944bc08d6858349072c7a0ea52bfd38 (diff) |
Fix incorrect `pshared' argument type for pthread_rwlockattr_setpshared.
rse@engelschall.com via FreeBSD.
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/include/pthread.h | 4 | ||||
-rw-r--r-- | lib/libpthread/uthread/uthread_rwlockattr.c | 10 |
2 files changed, 6 insertions, 8 deletions
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); } |