pipewire: module-rt: use sizeof(variable) instead of sizeof(type)

This commit is contained in:
Barnabás Pőcze 2025-02-27 18:15:30 +01:00 committed by Wim Taymans
parent ca47d0ef15
commit 13fe4a5a57

View file

@ -1040,7 +1040,7 @@ static int set_uclamp(int uclamp_min, int uclamp_max, pid_t pid) {
uint32_t sched_util_max; uint32_t sched_util_max;
} attr; } attr;
ret = syscall(SYS_sched_getattr, pid, &attr, sizeof(struct sched_attr), 0); ret = syscall(SYS_sched_getattr, pid, &attr, sizeof(attr), 0);
if (ret) { if (ret) {
pw_log_warn("Could not retrieve scheduler attributes: %d", -errno); pw_log_warn("Could not retrieve scheduler attributes: %d", -errno);
return -errno; return -errno;