diff options
author | 2018-02-05 08:21:54 +0000 | |
---|---|---|
committer | 2018-02-05 08:21:54 +0000 | |
commit | a4c723ed97d179831bce6f3e865845421fb6bb47 (patch) | |
tree | 2a7883ab77cee194b588987527ea9b53cc7770c9 /usr.bin/tmux/server-client.c | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-a4c723ed97d179831bce6f3e865845421fb6bb47.tar.xz wireguard-openbsd-a4c723ed97d179831bce6f3e865845421fb6bb47.zip |
Add struct status_line to hold status line members of struct client, not
used yet but will be soon. From Thomas Adam.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r-- | usr.bin/tmux/server-client.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 6f90ae353ca..a9222f156ed 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.246 2017/12/19 15:00:39 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.247 2018/02/05 08:21:54 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -195,7 +195,7 @@ server_client_create(int fd) c->tty.sx = 80; c->tty.sy = 24; - screen_init(&c->status, c->tty.sx, 1, 0); + screen_init(&c->status.status, c->tty.sx, 1, 0); c->message_string = NULL; TAILQ_INIT(&c->message_log); @@ -272,12 +272,12 @@ server_client_lost(struct client *c) if (c->stderr_data != c->stdout_data) evbuffer_free(c->stderr_data); - if (event_initialized(&c->status_timer)) - evtimer_del(&c->status_timer); - screen_free(&c->status); - if (c->old_status != NULL) { - screen_free(c->old_status); - free(c->old_status); + if (event_initialized(&c->status.timer)) + evtimer_del(&c->status.timer); + screen_free(&c->status.status); + if (c->status.old_status != NULL) { + screen_free(c->status.old_status); + free(c->status.old_status); } free(c->title); |