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/libc_r/uthread | |
parent | 7805e697b944bc08d6858349072c7a0ea52bfd38 (diff) |
Fix incorrect `pshared' argument type for pthread_rwlockattr_setpshared.
rse@engelschall.com via FreeBSD.
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r-- | lib/libc_r/uthread/uthread_rwlockattr.c | 10 |
1 files changed, 4 insertions, 6 deletions
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); } |