summaryrefslogtreecommitdiffstats
path: root/listen
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-16 21:22:40 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-16 21:26:46 +0200
commit890a82fe2b717702edaaabf9aba2e90497a23927 (patch)
tree45f3103380236e919d008435366f1f39c0b685dd /listen
parent9216b332b45bce65fdbaec3c8df0b29877e3371c (diff)
Listen: Fix test for tty's color capabilities.
It was testing the address of the curses function has_color(), not its return value indicated by the following warning: utils.c: In function ‘initcolor’: utils.c:84:6: warning: the address of ‘has_colors’ will always evaluate as ‘true’ [-Waddress] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'listen')
-rw-r--r--listen/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/listen/utils.c b/listen/utils.c
index 91b29c7..8f522e5 100644
--- a/listen/utils.c
+++ b/listen/utils.c
@@ -81,7 +81,7 @@ void lprintf(int dtype, char *fmt, ...)
int initcolor(void)
{
- if (!has_colors)
+ if (!has_colors())
return 0;
initscr(); /* Start ncurses */
start_color(); /* Initialize color support */