From: Lennart Poettering Date: Tue, 23 Jul 2019 08:19:58 +0000 (+0200) Subject: logind: cast to (void) when we ignore a syscall return value that is potentially... X-Git-Tag: v243-rc1~56^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07530d706561cb5fe7b04f5dd642cfb2eb26cb2e;p=thirdparty%2Fsystemd.git logind: cast to (void) when we ignore a syscall return value that is potentially dangerous --- diff --git a/src/login/logind-inhibit.c b/src/login/logind-inhibit.c index d32e2991012..3bb04a5d31a 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"