projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b71282e
)
logind: cast to (void) when we ignore a syscall return value that is potentially...
author
Lennart Poettering
<lennart@poettering.net>
Tue, 23 Jul 2019 08:19:58 +0000
(10:19 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 23 Jul 2019 14:08:06 +0000
(16:08 +0200)
src/login/logind-inhibit.c
patch
|
blob
|
history
diff --git
a/src/login/logind-inhibit.c
b/src/login/logind-inhibit.c
index
d32e299
..
3bb04a5
100644
(file)
--- 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"