From: Zbigniew Jędrzejewski-Szmek Date: Mon, 27 Nov 2017 21:52:32 +0000 (+0000) Subject: test-process-util: add (void) cast to make coverity happy X-Git-Tag: v236~102^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c47a9f909a661890a3857c1c6f6e075d92b028bf;p=platform%2Fupstream%2Fsystemd.git 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. --- diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c index 4773378..9b65f10 100644 --- a/src/test/test-process-util.c +++ b/src/test/test-process-util.c @@ -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);