summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-27 17:02:19 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-27 17:02:19 -0400
commit5e9e78ecd7ec5178483af8f1130cb6a958982b73 (patch)
tree895da4a9396f41a1ec80c3e6f6e4f3264b61470b /src/thread
parent7e76095180a5d64821e21900b85dbd8829e2d90d (diff)
downloadmusl-5e9e78ecd7ec5178483af8f1130cb6a958982b73.tar.gz
musl-5e9e78ecd7ec5178483af8f1130cb6a958982b73.tar.bz2
musl-5e9e78ecd7ec5178483af8f1130cb6a958982b73.tar.xz
musl-5e9e78ecd7ec5178483af8f1130cb6a958982b73.zip
convert the barrier pshared option back to 0/1 values when getting it
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/pthread_barrierattr_getpshared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_barrierattr_getpshared.c b/src/thread/pthread_barrierattr_getpshared.c
index de970768..8428bbec 100644
--- a/src/thread/pthread_barrierattr_getpshared.c
+++ b/src/thread/pthread_barrierattr_getpshared.c
@@ -2,6 +2,6 @@
int pthread_barrierattr_getpshared(const pthread_barrierattr_t *a, int *pshared)
{
- *pshared = *a;
+ *pshared = !!*a;
return 0;
}