aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-05-22 21:05:30 +0000
committerTiago Cunha <tcunha@gmx.com>2012-05-22 21:05:30 +0000
commit17da2f7d5f16a20e70539248db9803ba3ac17350 (patch)
tree513cbc6fab671bf91d02a678160a34ccedae2dc2 /tty.c
parentfff7c0b2768523f6732e8d3fa409c431aadd7bfc (diff)
downloadrtmux-17da2f7d5f16a20e70539248db9803ba3ac17350.tar.gz
rtmux-17da2f7d5f16a20e70539248db9803ba3ac17350.tar.bz2
rtmux-17da2f7d5f16a20e70539248db9803ba3ac17350.zip
Sync OpenBSD patchset 1121:
Store client in tty struct directly instead of using a callback function pointer.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 49c93e06..1c0c7a6b 100644
--- a/tty.c
+++ b/tty.c
@@ -64,7 +64,7 @@ void tty_cell(struct tty *,
((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx)
void
-tty_init(struct tty *tty, int fd, char *term)
+tty_init(struct tty *tty, struct client *c, int fd, char *term)
{
char *path;
@@ -76,6 +76,7 @@ tty_init(struct tty *tty, int fd, char *term)
else
tty->termname = xstrdup(term);
tty->fd = fd;
+ tty->client = c;
if ((path = ttyname(fd)) == NULL)
fatalx("ttyname failed");