summaryrefslogtreecommitdiff
path: root/pthread_condattr_setpshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_condattr_setpshared.c')
-rw-r--r--pthread_condattr_setpshared.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/pthread_condattr_setpshared.c b/pthread_condattr_setpshared.c
index 1f03a03..23db834 100644
--- a/pthread_condattr_setpshared.c
+++ b/pthread_condattr_setpshared.c
@@ -86,24 +86,24 @@ pthread_condattr_setpshared (pthread_condattr_t * attr, int pshared)
if ((attr != NULL && *attr != NULL)
&& ((pshared == PTHREAD_PROCESS_SHARED)
- || (pshared == PTHREAD_PROCESS_PRIVATE)))
+ || (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;
}
@@ -114,4 +114,4 @@ pthread_condattr_setpshared (pthread_condattr_t * attr, int pshared)
return result;
-} /* pthread_condattr_setpshared */
+} /* pthread_condattr_setpshared */