summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
Diffstat (limited to 'attr.c')
-rw-r--r--attr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/attr.c b/attr.c
index 21c3ddb..5a76403 100644
--- a/attr.c
+++ b/attr.c
@@ -518,7 +518,7 @@ pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
switch (contentionscope) {
case PTHREAD_SCOPE_SYSTEM:
- attr->contentionscope = contentionscope;
+ (*attr)->contentionscope = contentionscope;
return 0;
case PTHREAD_SCOPE_PROCESS:
return ENOTSUP;
@@ -535,7 +535,7 @@ int
pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope)
{
#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
- *contentionscope = attr->contentionscope;
+ *contentionscope = (*attr)->contentionscope;
return 0;
#else
return ENOSYS;