X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fjob.c;h=bd63eb16ba0673d0304b77a53c3ce7dd64bf4dcf;hb=340a1d2330ddc1dd18ad75bcdddf32f63c84b4a1;hp=2129773edef3082f15360c1430149bf830ea6018;hpb=9c3349e23b14db27e7ba45f82cf647899c563ea9;p=elogind.git diff --git a/src/core/job.c b/src/core/job.c index 2129773ed..bd63eb16b 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -19,10 +19,7 @@ along with systemd; If not, see . ***/ -#include #include -#include -#include #include "sd-id128.h" #include "sd-messages.h" @@ -30,8 +27,6 @@ #include "unit.h" #include "macro.h" #include "strv.h" -#include "load-fragment.h" -#include "load-dropin.h" #include "log.h" #include "dbus-job.h" #include "special.h" @@ -322,8 +317,8 @@ void job_dump(Job *j, FILE*f, const char *prefix) { * the JOB_RELOAD_OR_START, which lies outside the lookup function's domain), * the following properties hold: * - * Merging is associative! A merged with B merged with C is the same as - * A merged with C merged with B. + * Merging is associative! A merged with B, and then merged with C is the same + * as A merged with the result of B merged with C. * * Mergeability is transitive! If A can be merged with B and B with C then * A also with C. @@ -578,7 +573,7 @@ int job_run_and_invalidate(Job *j) { r = job_finish_and_invalidate(j, JOB_INVALID, true); else if (r == -EPROTO) r = job_finish_and_invalidate(j, JOB_ASSERT, true); - else if (r == -ENOTSUP) + else if (r == -EOPNOTSUPP) r = job_finish_and_invalidate(j, JOB_UNSUPPORTED, true); else if (r == -EAGAIN) job_set_state(j, JOB_WAITING); @@ -764,7 +759,6 @@ static void job_log_status_message(Unit *u, JobType t, JobResult result) { DISABLE_WARNING_FORMAT_NONLITERAL; snprintf(buf, sizeof(buf), format, unit_description(u)); - char_array_0(buf); REENABLE_WARNING; if (t == JOB_START) {