Date: Mon, 18 Oct 2010 05:15:26 +0000 (UTC) From: David Xu <davidxu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r214008 - head/lib/libthr/thread Message-ID: <201010180515.o9I5FQkV080831@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: davidxu Date: Mon Oct 18 05:15:26 2010 New Revision: 214008 URL: http://svn.freebsd.org/changeset/base/214008 Log: s/||/&& Modified: head/lib/libthr/thread/thr_rwlockattr.c Modified: head/lib/libthr/thread/thr_rwlockattr.c ============================================================================== --- head/lib/libthr/thread/thr_rwlockattr.c Mon Oct 18 05:09:22 2010 (r214007) +++ head/lib/libthr/thread/thr_rwlockattr.c Mon Oct 18 05:15:26 2010 (r214008) @@ -103,8 +103,8 @@ _pthread_rwlockattr_setpshared(pthread_r int _pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *attr, int kind) { - if (kind != PTHREAD_RWLOCK_PREFER_READER_NP || - kind != PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP || + if (kind != PTHREAD_RWLOCK_PREFER_READER_NP && + kind != PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP && kind != PTHREAD_RWLOCK_PREFER_WRITER_NP) { return (EINVAL); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010180515.o9I5FQkV080831>