From 13fe4a5a57112be1c53aaa40344f79b195bb6c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 27 Feb 2025 18:15:30 +0100 Subject: [PATCH] pipewire: module-rt: use `sizeof(variable)` instead of `sizeof(type)` --- src/modules/module-rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index 108627a13..5dc0b65c1 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -1040,7 +1040,7 @@ static int set_uclamp(int uclamp_min, int uclamp_max, pid_t pid) { uint32_t sched_util_max; } 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) { pw_log_warn("Could not retrieve scheduler attributes: %d", -errno); return -errno;