Skip to content

Commit 80dc664

Browse files
committed
Add keyword set as second parameter on get_child_status()
1 parent d12a42a commit 80dc664

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

main/gridinit_cmd.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,8 @@ compare_child_info(gconstpointer p1, gconstpointer p2)
126126
}
127127

128128
static const char *
129-
get_child_status(struct child_info_s *ci)
129+
get_child_status(struct child_info_s *ci, struct keyword_set_s *kw)
130130
{
131-
struct keyword_set_s *kw;
132-
133-
kw = flag_color ? &KEYWORDS_COLOR : &KEYWORDS_NORMAL;
134131

135132
if (ci->broken) {
136133
return kw->broken;
@@ -433,7 +430,7 @@ command_status(int lvl, int argc, char **args)
433430
if (ci->pid > 0)
434431
strftime(str_time, sizeof(str_time), "%Y-%m-%d %H:%M:%S",
435432
gmtime(&(ci->last_start_attempt)));
436-
str_status = get_child_status(ci);
433+
str_status = get_child_status(ci, kw);
437434

438435
/* Manage counters */
439436

0 commit comments

Comments
 (0)