summaryrefslogtreecommitdiff
path: root/src/rc-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc-status.c')
-rw-r--r--src/rc-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc-status.c b/src/rc-status.c
index 02368a1..3958b71 100644
--- a/src/rc-status.c
+++ b/src/rc-status.c
@@ -82,7 +82,7 @@ static void print_service (char *service)
} else
snprintf (status, sizeof (status), " stopped ");
- if (isatty (fileno (stdout)) && ! rc_env_bool ("RC_NOCOLOR"))
+ if (isatty (fileno (stdout)) && ! rc_yesno (getenv ("RC_NOCOLOR")))
printf ("\n");
ebracket (cols, color, status);
}