diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-23 10:19:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-23 16:08:06 +0200 |
commit | 07530d706561cb5fe7b04f5dd642cfb2eb26cb2e (patch) | |
tree | 7062dde44ceb089c5a3a362cdc0e5e14da119bc2 /src | |
parent | b71282efea506950fb14b5a19b04de2fa21a13fd (diff) | |
download | systemd-07530d706561cb5fe7b04f5dd642cfb2eb26cb2e.tar.gz systemd-07530d706561cb5fe7b04f5dd642cfb2eb26cb2e.tar.bz2 systemd-07530d706561cb5fe7b04f5dd642cfb2eb26cb2e.zip |
logind: cast to (void) when we ignore a syscall return value that is potentially dangerous
Diffstat (limited to 'src')
-rw-r--r-- | src/login/logind-inhibit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c index d32e299101..3bb04a5d31 100644 --- a/src/login/logind-inhibit.c +++ b/src/login/logind-inhibit.c @@ -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" |