diff options
author | 2009-11-26 21:37:13 +0000 | |
---|---|---|
committer | 2009-11-26 21:37:13 +0000 | |
commit | 5c8958bdba9ee5a7557c4df88de415bf485e2c2f (patch) | |
tree | 07c0a4f88ae28792f462308b6c1a75047fcc1023 /usr.bin/tmux/tty.c | |
parent | Don't try to be clever and mix tag queueing mechanisms. Few if any (diff) | |
download | wireguard-openbsd-5c8958bdba9ee5a7557c4df88de415bf485e2c2f.tar.xz wireguard-openbsd-5c8958bdba9ee5a7557c4df88de415bf485e2c2f.zip |
Remove a couple of unused arguments where possible, and add /* ARGSUSED */ to
the rest to reduce lint output.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index d4feadac19b..8c49ce394a4 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.72 2009/11/26 14:46:08 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.73 2009/11/26 21:37:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -38,7 +38,7 @@ 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_bg(struct tty *, const struct grid_cell *, int *); +void tty_colours_bg(struct tty *, const struct grid_cell *); void tty_redraw_region(struct tty *, const struct tty_ctx *); void tty_emulate_repeat( @@ -125,6 +125,7 @@ tty_open(struct tty *tty, const char *overrides, char **cause) return (0); } +/* ARGSUSED */ void tty_read_callback(unused struct bufferevent *bufev, void *data) { @@ -134,6 +135,7 @@ tty_read_callback(unused struct bufferevent *bufev, void *data) ; } +/* ARGSUSED */ void tty_error_callback( unused struct bufferevent *bufev, unused short what, unused void *data) @@ -1278,7 +1280,7 @@ tty_colours(struct tty *tty, const struct grid_cell *gc, int *attr) */ if (!bg_default && (bg != tc->bg || ((flags & GRID_FLAG_BG256) != (tc->flags & GRID_FLAG_BG256)))) - tty_colours_bg(tty, gc, attr); + tty_colours_bg(tty, gc); } void @@ -1315,7 +1317,7 @@ save_fg: } void -tty_colours_bg(struct tty *tty, const struct grid_cell *gc, unused int *attr) +tty_colours_bg(struct tty *tty, const struct grid_cell *gc) { struct grid_cell *tc = &tty->cell; u_char bg = gc->bg; |