From: Lennart Poettering Date: Fri, 6 May 2016 14:58:01 +0000 (+0200) Subject: systemctl: indentation fix X-Git-Tag: v231~342 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=baa9ecc1ee63bd5d31adc74f0021d27a65ff3e77;p=platform%2Fupstream%2Fsystemd.git systemctl: indentation fix --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index bec4f31..7d0d496 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -1711,21 +1711,22 @@ static int list_dependencies_one( const char *on; (void) get_state_one_unit(bus, *c, &active_state); + switch (active_state) { - case UNIT_ACTIVE: - case UNIT_RELOADING: - case UNIT_ACTIVATING: - on = ansi_highlight_green(); - break; - - case UNIT_INACTIVE: - case UNIT_DEACTIVATING: - on = ansi_normal(); - break; - - default: - on = ansi_highlight_red(); - break; + case UNIT_ACTIVE: + case UNIT_RELOADING: + case UNIT_ACTIVATING: + on = ansi_highlight_green(); + break; + + case UNIT_INACTIVE: + case UNIT_DEACTIVATING: + on = ansi_normal(); + break; + + default: + on = ansi_highlight_red(); + break; } printf("%s%s%s ", on, draw_special_char(DRAW_BLACK_CIRCLE), ansi_normal());