diff options
Diffstat (limited to 'attr.c')
-rw-r--r-- | attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |