diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-11-27 21:52:32 +0000 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-11-27 21:52:32 +0000 |
commit | 9399038aa6be19e88f4a6f3390eb2e1465fd1ff8 (patch) | |
tree | fe24c524fd78be14e36ca17a184a9b8d97163930 /src/test | |
parent | cffb9dfa119b3e156f914a402e65e42f80c8d409 (diff) |
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.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-process-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c index c573f4127..fb2cce777 100644 --- a/src/test/test-process-util.c +++ b/src/test/test-process-util.c @@ -433,7 +433,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); |