diff options
author | jasone <jasone@FreeBSD.org> | 1999-12-18 01:00:42 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 1999-12-18 01:00:42 +0000 |
commit | 432d84cbec46976aaa56dc8fff7958fc57a5384b (patch) | |
tree | aaa82c490b7778c83d64448bcac161c04cf828f6 /lib/libpthread/thread | |
parent | abf915c20a0ccad3a3a7e4fd02885c9febb7d107 (diff) | |
download | FreeBSD-src-432d84cbec46976aaa56dc8fff7958fc57a5384b.zip FreeBSD-src-432d84cbec46976aaa56dc8fff7958fc57a5384b.tar.gz |
Fix some minor POSIX/SUSv2 compliance nits.
PR: kern/11982
Diffstat (limited to 'lib/libpthread/thread')
-rw-r--r-- | lib/libpthread/thread/thr_rwlockattr.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/libpthread/thread/thr_rwlockattr.c b/lib/libpthread/thread/thr_rwlockattr.c index 3330ba1..7a56bca 100644 --- a/lib/libpthread/thread/thr_rwlockattr.c +++ b/lib/libpthread/thread/thr_rwlockattr.c @@ -81,16 +81,13 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *rwlockattr) } int -pthread_rwlockattr_setpshared (pthread_rwlockattr_t *rwlockattr, - int *pshared) +pthread_rwlockattr_setpshared (pthread_rwlockattr_t *rwlockattr, int pshared) { - int ps = *pshared; - - /* only PTHREAD_PROCESS_PRIVATE is supported */ - if (ps != PTHREAD_PROCESS_PRIVATE) + /* Only PTHREAD_PROCESS_PRIVATE is supported. */ + if (pshared != PTHREAD_PROCESS_PRIVATE) return(EINVAL); - (*rwlockattr)->pshared = ps; + (*rwlockattr)->pshared = pshared; return(0); } |