chiark / gitweb /
core: add new "flush" job mode to cancel all other jobs when queuing a new job
[elogind.git] / src / core / execute.c
index e04f46f03670f1f82a813b3548ff23152c1ed2a8..1e571da69c5e74d5a726f204933924cf308e9747 100644 (file)
@@ -155,7 +155,7 @@ _pure_ static const char *tty_path(const ExecContext *context) {
         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)
@@ -2214,7 +2214,8 @@ int exec_command_set(ExecCommand *c, const char *path, ...) {
         if (!l)
                 return -ENOMEM;
 
-        if (!(p = strdup(path))) {
+        p = strdup(path);
+        if (!p) {
                 strv_free(l);
                 return -ENOMEM;
         }