chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make gcc shut up
[elogind.git]
/
execute.c
diff --git
a/execute.c
b/execute.c
index a7775a4ea9f552cdc1defeecf3ba941775373372..ef24f71a253d0f369c9644689bdcb2c2af73c1b8 100644
(file)
--- a/
execute.c
+++ b/
execute.c
@@
-392,8
+392,8
@@
static int chown_terminal(int fd, uid_t uid) {
assert(fd >= 0);
/* This might fail. What matters are the results. */
- fchown(fd, uid, -1);
- fchmod(fd, TTY_MODE);
+
(void)
fchown(fd, uid, -1);
+
(void)
fchmod(fd, TTY_MODE);
if (fstat(fd, &st) < 0)
return -errno;