summaryrefslogtreecommitdiffstats
path: root/src/core/job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-13 19:34:30 +0100
committerLennart Poettering <lennart@poettering.net>2018-11-16 15:22:48 +0100
commitea2c0e4526dbb520d55936e781f4493357a9866e (patch)
tree63826034a56c3757139cb40d4af4eb632f93f102 /src/core/job.c
parentjob: include JOB_ID field in log message about jobs (diff)
downloadsystemd-ea2c0e4526dbb520d55936e781f4493357a9866e.tar.xz
systemd-ea2c0e4526dbb520d55936e781f4493357a9866e.zip
job: minor coding style tweaks
Diffstat (limited to '')
-rw-r--r--src/core/job.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 07846ca202..372d5360d5 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -583,7 +583,9 @@ int job_run_and_invalidate(Job *j) {
switch (j->type) {
case JOB_VERIFY_ACTIVE: {
- UnitActiveState t = unit_active_state(j->unit);
+ UnitActiveState t;
+
+ t = unit_active_state(j->unit);
if (UNIT_IS_ACTIVE_OR_RELOADING(t))
r = -EALREADY;
else if (t == UNIT_ACTIVATING)
@@ -598,8 +600,7 @@ int job_run_and_invalidate(Job *j) {
case JOB_RESTART:
r = job_perform_on_unit(&j);
- /* If the unit type does not support starting/stopping,
- * then simply wait. */
+ /* If the unit type does not support starting/stopping, then simply wait. */
if (r == -EBADR)
r = 0;
break;