mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
pipewire: module-rt: use sizeof(variable) instead of sizeof(type)
This commit is contained in:
parent
ca47d0ef15
commit
13fe4a5a57
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue