tree-wide: (void)ify a few unlink() and rmdir()

Let's be helpful to static analyzers which care about whether we
knowingly ignore return values. We do in these cases, since they are
usually part of error paths.
This commit is contained in:
Lennart Poettering
2019-03-27 18:09:56 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent 36dbf97170
commit 6990fb6bc6
11 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ static int make_backup(const char *target, const char *x) {
return 0;
fail:
unlink(temp);
(void) unlink(temp);
return r;
}