Skip to content

Commit

Permalink
realtime: fix priority type in MakeThreadHighPriority
Browse files Browse the repository at this point in the history
The RTKit argument for the priority in MakeThreadHighPriority is
supposed to be an int, not a uint.

This avoids errors like: Jul 19 11:16:34 wtay rtkit-daemon[1474]:
Failed to parse MakeThreadHighPriority() method call: Argument 2 is
specified to be of type "int32", but is actually of type "uint32"
  • Loading branch information
wtay authored and GeorgesStavracas committed Jul 19, 2022
1 parent 0b6909f commit 750b9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/realtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ handle_make_thread_high_priority_with_pid (XdpDbusRealtime *object,

g_dbus_proxy_call (G_DBUS_PROXY (realtime->rtkit_proxy),
"MakeThreadHighPriorityWithPID",
g_variant_new ("(ttu)", pids[0], thread, priority),
g_variant_new ("(tti)", pids[0], thread, priority),
G_DBUS_CALL_FLAGS_NONE,
-1,
NULL,
Expand Down

0 comments on commit 750b9e5

Please sign in to comment.