summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-04-29 07:33:41 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-04-29 07:33:41 +0000
commite60f48ab09f75c622f45718797f83964a28769c0 (patch)
tree6bde4032d656f1c9c0f79c37f2e1576c8bc6a017 /status.c
parentff5155f71923b078a35509260f01be46222dafb7 (diff)
Use int not u_char for colours from options since they may have bit 8
set to mark them as 256-colour. Reported by Chris Johnson.
Diffstat (limited to 'status.c')
-rw-r--r--status.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/status.c b/status.c
index 33ac81ff..b90d1885 100644
--- a/status.c
+++ b/status.c
@@ -81,7 +81,7 @@ status_redraw_get_left(struct client *c,
{
struct session *s = c->session;
char *left;
- u_char fg, bg, attr;
+ int fg, bg, attr;
size_t leftlen;
fg = options_get_number(&s->options, "status-left-fg");
@@ -111,7 +111,7 @@ status_redraw_get_right(struct client *c,
{
struct session *s = c->session;
char *right;
- u_char fg, bg, attr;
+ int fg, bg, attr;
size_t rightlen;
fg = options_get_number(&s->options, "status-right-fg");
@@ -683,7 +683,7 @@ status_print(
struct session *s = c->session;
const char *fmt;
char *text;
- u_char fg, bg, attr;
+ int fg, bg, attr;
fg = options_get_number(oo, "window-status-fg");
if (fg != 8)