chiark / gitweb /
job: job_new() can find the manager from the unit
[elogind.git] / src / core / transaction.c
index 8fa89a7be3981d7831ed638ec3647a5000a308eb..1344e2fb9627c66e24d8212d587952293b4d164c 100644 (file)
@@ -763,7 +763,7 @@ static Job* transaction_add_one_job(Transaction *tr, JobType type, Unit *unit, b
         if (unit->job && unit->job->type == type)
                 j = unit->job;
         else {
-                j = job_new(unit->manager, type, unit);
+                j = job_new(unit, type);
                 if (!j)
                         return NULL;
         }