summaryrefslogtreecommitdiff
path: root/src/journal-remote
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-03-27 14:36:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-03-27 18:09:56 +0100
commit6990fb6bc6f9421a15a3e0b02909b7526cd4cbfc (patch)
treedb2aeb45c8616b52c10f616de5bfc27462add82c /src/journal-remote
parent36dbf9717030d0a9d69df2e6180284834fa8a851 (diff)
downloadsystemd-6990fb6bc6f9421a15a3e0b02909b7526cd4cbfc.tar.gz
systemd-6990fb6bc6f9421a15a3e0b02909b7526cd4cbfc.tar.bz2
systemd-6990fb6bc6f9421a15a3e0b02909b7526cd4cbfc.zip
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.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/journal-upload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-upload.c b/src/journal-remote/journal-upload.c
index ef3556f825..cc96825288 100644
--- a/src/journal-remote/journal-upload.c
+++ b/src/journal-remote/journal-upload.c
@@ -106,7 +106,7 @@ static int check_cursor_updating(Uploader *u) {
if (r < 0)
return log_error_errno(r, "Cannot save state to %s: %m",
u->state_file);
- unlink(temp_path);
+ (void) unlink(temp_path);
return 0;
}