From ff0cf32d6b693dd2573ad3a945ccefd7d09e30c6 Mon Sep 17 00:00:00 2001 From: David Xu Date: Tue, 5 Aug 2008 01:29:51 +0000 Subject: [PATCH] MFC SVN rev 181099: Correctly return result in pthread_condattr_getpshared. --- lib/libthr/thread/thr_condattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libthr/thread/thr_condattr.c b/lib/libthr/thread/thr_condattr.c index c8f170334299..f2b126fe0f16 100644 --- a/lib/libthr/thread/thr_condattr.c +++ b/lib/libthr/thread/thr_condattr.c @@ -111,7 +111,7 @@ _pthread_condattr_getpshared(const pthread_condattr_t *attr, if (attr == NULL || *attr == NULL) return (EINVAL); - pshared = PTHREAD_PROCESS_PRIVATE; + *pshared = PTHREAD_PROCESS_PRIVATE; return (0); }