summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-11-26 22:47:15 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-11-26 22:47:15 +0000
commit5be517bb84b1d1cf4b7acffe7c1d74c6db9b9f52 (patch)
tree8b4b27cfbc417b2c1e4333b32a97f45ac64e7a7b /usr.bin/tmux
parent3598e5e70602802384b1986b36590ddd7779a248 (diff)
Fix type - attributes should be u_char not int.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/tty.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 8c49ce394a4..e04fbf25262 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.73 2009/11/26 21:37:13 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.74 2009/11/26 22:47:14 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -36,8 +36,8 @@ void tty_fill_acs(struct tty *);
int tty_try_256(struct tty *, u_char, const char *);
int tty_try_88(struct tty *, u_char, const char *);
-void tty_colours(struct tty *, const struct grid_cell *, int *);
-void tty_colours_fg(struct tty *, const struct grid_cell *, int *);
+void tty_colours(struct tty *, const struct grid_cell *, u_char *);
+void tty_colours_fg(struct tty *, const struct grid_cell *, u_char *);
void tty_colours_bg(struct tty *, const struct grid_cell *);
void tty_redraw_region(struct tty *, const struct tty_ctx *);
@@ -1145,8 +1145,7 @@ void
tty_attributes(struct tty *tty, const struct grid_cell *gc)
{
struct grid_cell *tc = &tty->cell, gc2;
- u_char changed;
- u_int new_attr;
+ u_char changed, new_attr;
/* If the character is space, don't care about foreground. */
if (gc->data == ' ' && !(gc->flags & GRID_FLAG_UTF8)) {
@@ -1217,7 +1216,7 @@ tty_attributes(struct tty *tty, const struct grid_cell *gc)
}
void
-tty_colours(struct tty *tty, const struct grid_cell *gc, int *attr)
+tty_colours(struct tty *tty, const struct grid_cell *gc, u_char *attr)
{
struct grid_cell *tc = &tty->cell;
u_char fg = gc->fg, bg = gc->bg, flags = gc->flags;
@@ -1284,7 +1283,7 @@ tty_colours(struct tty *tty, const struct grid_cell *gc, int *attr)
}
void
-tty_colours_fg(struct tty *tty, const struct grid_cell *gc, int *attr)
+tty_colours_fg(struct tty *tty, const struct grid_cell *gc, u_char *attr)
{
struct grid_cell *tc = &tty->cell;
u_char fg = gc->fg;