chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use space after a silencing (void)
[elogind.git]
/
src
/
console
/
consoled-terminal.c
diff --git
a/src/console/consoled-terminal.c
b/src/console/consoled-terminal.c
index 755f23ece23111d199a0e9d496be355b136aa3dd..03447d1b9234bdc4b5591c5f71d7d66731b7c539 100644
(file)
--- a/
src/console/consoled-terminal.c
+++ b/
src/console/consoled-terminal.c
@@
-20,7
+20,6
@@
***/
#include <errno.h>
***/
#include <errno.h>
-#include <inttypes.h>
#include <stdlib.h>
#include "consoled.h"
#include "list.h"
#include <stdlib.h>
#include "consoled.h"
#include "list.h"
@@
-99,7
+98,7
@@
Terminal *terminal_free(Terminal *t) {
assert(t->workspace);
if (t->pty) {
assert(t->workspace);
if (t->pty) {
- (void)pty_signal(t->pty, SIGHUP);
+ (void)
pty_signal(t->pty, SIGHUP);
pty_close(t->pty);
pty_unref(t->pty);
}
pty_close(t->pty);
pty_unref(t->pty);
}
@@
-165,7
+164,7
@@
void terminal_run(Terminal *t) {
setenv("COLORTERM", "systemd-console", 1);
execve(argv[0], argv, environ);
setenv("COLORTERM", "systemd-console", 1);
execve(argv[0], argv, environ);
- log_error
(
"Cannot exec %s (%d): %m", argv[0], -errno);
+ log_error
_errno(errno,
"Cannot exec %s (%d): %m", argv[0], -errno);
_exit(1);
}
}
_exit(1);
}
}