diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-05-03 17:12:38 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-05-03 17:12:38 +0000 |
commit | e45dc6ae59b6362224253415ae8f9e2ce6cdad05 (patch) | |
tree | e0dcc1d017af381a383fdabf7a5a2798cb7c9628 | |
parent | d0907861f933c8ff7547a0f4994a620e796a995b (diff) | |
download | rtmux-e45dc6ae59b6362224253415ae8f9e2ce6cdad05.tar.gz rtmux-e45dc6ae59b6362224253415ae8f9e2ce6cdad05.tar.bz2 rtmux-e45dc6ae59b6362224253415ae8f9e2ce6cdad05.zip |
Sync OpenBSD patchset 1103:
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.
-rw-r--r-- | status.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |