diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-09-27 16:25:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-27 16:25:27 +0200 |
commit | b8fafaf4a1cffd02389d61ed92ca7acb1b8c739c (patch) | |
tree | 86ebd6e5617bc070af89556aed247b4eb1f6a6ea /src/network/networkctl.c | |
parent | 629abfc23f4e8d61ec0e952182e8200656b2bbe1 (diff) | |
parent | 9aa8fa701b79b74d118df8dbda0940f74aa8735b (diff) |
Merge pull request #4220 from keszybz/show-and-formatting-fixes
Show and formatting fixes
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r-- | src/network/networkctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c index d2df9b7560..6f7f41bf7d 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -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 |