diff options
author | 2000-01-04 22:34:23 +0000 | |
---|---|---|
committer | 2000-01-04 22:34:23 +0000 | |
commit | 0c8be47ee7380c9e96b8c871c2b7c03484e56fd2 (patch) | |
tree | 16adfccd9ee71eaf57ef45c56cee80f7b43aff47 /lib/libpthread/uthread | |
parent | If SIOCSIFADDR fails, put back the old address before calling splx(). (diff) | |
download | wireguard-openbsd-0c8be47ee7380c9e96b8c871c2b7c03484e56fd2.tar.xz wireguard-openbsd-0c8be47ee7380c9e96b8c871c2b7c03484e56fd2.zip |
Fix incorrect `pshared' argument type for pthread_rwlockattr_setpshared.
rse@engelschall.com via FreeBSD.
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r-- | lib/libpthread/uthread/uthread_rwlockattr.c | 10 |
1 files changed, 4 insertions, 6 deletions
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); } |