aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/htl/timer_routines.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-15 17:35:51 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-15 21:31:08 +0100
commit1bd7a06a958e93dbd10d99d30ee9ad82fca13f48 (patch)
tree07a368ec2acde2179d376eebd0a871f737a69144 /sysdeps/htl/timer_routines.h
parentc1105e34aced53b26f02176b973079eb30fc54b1 (diff)
downloadglibc-1bd7a06a958e93dbd10d99d30ee9ad82fca13f48.zip
glibc-1bd7a06a958e93dbd10d99d30ee9ad82fca13f48.tar.gz
glibc-1bd7a06a958e93dbd10d99d30ee9ad82fca13f48.tar.bz2
htl: Hide __pthread_attr's __schedparam type [BZ #23088]
The content of the structure is only used internally, so we can make __pthread_attr_getschedparam and __pthread_attr_setschedparam convert between the public sched_param type and an internal __sched_param. This allows to avoid to spuriously expose the sched_param type. This fixes BZ #23088.
Diffstat (limited to 'sysdeps/htl/timer_routines.h')
-rw-r--r--sysdeps/htl/timer_routines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/htl/timer_routines.h b/sysdeps/htl/timer_routines.h
index 8d0bec8..fa69d9e 100644
--- a/sysdeps/htl/timer_routines.h
+++ b/sysdeps/htl/timer_routines.h
@@ -32,8 +32,8 @@ thread_attr_compare (const pthread_attr_t * left, const pthread_attr_t * right)
struct __pthread_attr *ileft = (struct __pthread_attr *) left;
struct __pthread_attr *iright = (struct __pthread_attr *) right;
- return ileft->__schedparam.sched_priority
- == iright->__schedparam.sched_priority
+ return ileft->__schedparam.__sched_priority
+ == iright->__schedparam.__sched_priority
&& ileft->__stackaddr == iright->__stackaddr
&& ileft->__stacksize == iright->__stacksize
&& ileft->__guardsize == iright->__guardsize