convert the barrier pshared option back to 0/1 values when getting it
authorRich Felker <dalias@aerifal.cx>
Tue, 27 Sep 2011 21:02:19 +0000 (17:02 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 27 Sep 2011 21:02:19 +0000 (17:02 -0400)
src/thread/pthread_barrierattr_getpshared.c

index de970768f8c7227f971b40f50aebdb5097c89e60..8428bbecf38606b12e1667a4bb735c2d4f9591e4 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_barrierattr_getpshared(const pthread_barrierattr_t *a, int *pshared)
 {
-       *pshared = *a;
+       *pshared = !!*a;
        return 0;
 }