summaryrefslogtreecommitdiff
path: root/pthread_barrierattr_setpshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_barrierattr_setpshared.c')
-rw-r--r--pthread_barrierattr_setpshared.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/pthread_barrierattr_setpshared.c b/pthread_barrierattr_setpshared.c
index c76f59c..90d7ef2 100644
--- a/pthread_barrierattr_setpshared.c
+++ b/pthread_barrierattr_setpshared.c
@@ -39,8 +39,7 @@
int
-pthread_barrierattr_setpshared (pthread_barrierattr_t * attr,
- int pshared)
+pthread_barrierattr_setpshared (pthread_barrierattr_t * attr, int pshared)
/*
* ------------------------------------------------------
* DOCPUBLIC
@@ -89,24 +88,24 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t * attr,
(pshared == PTHREAD_PROCESS_PRIVATE)))
{
if (pshared == PTHREAD_PROCESS_SHARED)
- {
+ {
#if !defined( _POSIX_THREAD_PROCESS_SHARED )
- result = ENOSYS;
- pshared = PTHREAD_PROCESS_PRIVATE;
+ result = ENOSYS;
+ pshared = PTHREAD_PROCESS_PRIVATE;
#else
- result = 0;
+ result = 0;
#endif /* _POSIX_THREAD_PROCESS_SHARED */
- }
+ }
else
- {
- result = 0;
- }
+ {
+ result = 0;
+ }
(*attr)->pshared = pshared;
}
@@ -117,4 +116,4 @@ pthread_barrierattr_setpshared (pthread_barrierattr_t * attr,
return (result);
-} /* pthread_barrierattr_setpshared */
+} /* pthread_barrierattr_setpshared */