logind: cast to (void) when we ignore a syscall return value that is potentially...
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 08:19:58 +0000 (10:19 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jul 2019 14:08:06 +0000 (16:08 +0200)
src/login/logind-inhibit.c

index d32e299..3bb04a5 100644 (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"