]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
job: minor coding style tweaks
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Nov 2018 18:34:30 +0000 (19:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 16 Nov 2018 14:22:48 +0000 (15:22 +0100)
src/core/job.c

index 07846ca202aa5e37663a2bb4491fd2d13d3676e5..372d5360d538889e5c5c8feafec78b09e562c257 100644 (file)
@@ -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;