mirror of
https://github.com/systemd/systemd.git
synced 2025-02-28 05:57:33 +03:00
test-process-util: add (void) cast to make coverity happy
The intent is for the call to succeed only when privileged, so make that clear.
This commit is contained in:
parent
ca9b2b4dc1
commit
c47a9f909a
@ -425,7 +425,7 @@ static void test_rename_process_multi(void) {
|
||||
/* child */
|
||||
test_rename_process_now("one", 1);
|
||||
test_rename_process_now("more", 0); /* longer than "one", hence truncated */
|
||||
setresuid(99, 99, 99);
|
||||
(void) setresuid(99, 99, 99); /* change uid when running privileged */
|
||||
test_rename_process_now("time!", 0);
|
||||
test_rename_process_now("0", 1); /* shorter than "one", should fit */
|
||||
test_rename_process_one("", -EINVAL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user