systemctl,networkctl,busctl,backlight: use STRPTR_IN_SET

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-09-24 20:22:05 -04:00
parent c7bf9d5183
commit 1cf03a4f8e
4 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ static void setup_state_to_color(const char *state, const char **on, const char
} else if (streq_ptr(state, "configuring")) {
*on = ansi_highlight_yellow();
*off = ansi_normal();
} else if (streq_ptr(state, "failed") || streq_ptr(state, "linger")) {
} else if (STRPTR_IN_SET(state, "failed", "linger")) {
*on = ansi_highlight_red();
*off = ansi_normal();
} else