chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/core/selinux-access: #include <sys/socket.h>
[elogind.git]
/
src
/
core
/
execute.c
diff --git
a/src/core/execute.c
b/src/core/execute.c
index e04f46f03670f1f82a813b3548ff23152c1ed2a8..1e571da69c5e74d5a726f204933924cf308e9747 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-155,7
+155,7
@@
_pure_ static const char *tty_path(const ExecContext *context) {
return "/dev/console";
}
return "/dev/console";
}
-void exec_context_tty_reset(const ExecContext *context) {
+
static
void exec_context_tty_reset(const ExecContext *context) {
assert(context);
if (context->tty_vhangup)
assert(context);
if (context->tty_vhangup)
@@
-2214,7
+2214,8
@@
int exec_command_set(ExecCommand *c, const char *path, ...) {
if (!l)
return -ENOMEM;
if (!l)
return -ENOMEM;
- if (!(p = strdup(path))) {
+ p = strdup(path);
+ if (!p) {
strv_free(l);
return -ENOMEM;
}
strv_free(l);
return -ENOMEM;
}