logind: cast to (void) when we ignore a syscall return value that is potentially dangerous

This commit is contained in:
Lennart Poettering
2019-07-23 16:08:06 +02:00
parent b71282efea
commit 07530d7065
+1 -1
View File
@@ -83,7 +83,7 @@ int inhibitor_save(Inhibitor *i) {
if (r < 0)
goto fail;
fchmod(fileno(f), 0644);
(void) fchmod(fileno(f), 0644);
fprintf(f,
"# This is private data. Do not parse.\n"