diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-09-27 17:02:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-09-27 17:02:19 -0400 |
commit | 5e9e78ecd7ec5178483af8f1130cb6a958982b73 (patch) | |
tree | 895da4a9396f41a1ec80c3e6f6e4f3264b61470b /src/thread/pthread_barrierattr_getpshared.c | |
parent | 7e76095180a5d64821e21900b85dbd8829e2d90d (diff) | |
download | musl-5e9e78ecd7ec5178483af8f1130cb6a958982b73.tar.gz 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/pthread_barrierattr_getpshared.c')
-rw-r--r-- | src/thread/pthread_barrierattr_getpshared.c | 2 |
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; } |