aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-11 18:01:13 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-11 18:01:13 +0000
commitd87ab0cadf6ee30f253a815ebc80c14d2818391d (patch)
tree735f6d1350b00bff7b0a17d61346f33a9e8a6399 /tty.c
parent0d19d78fff40fbf57c557698f29049dcd1b1ca7b (diff)
parentbf6a5c056d4be87d68d0e3e409dbf8f116bc9317 (diff)
downloadrtmux-d87ab0cadf6ee30f253a815ebc80c14d2818391d.tar.gz
rtmux-d87ab0cadf6ee30f253a815ebc80c14d2818391d.tar.bz2
rtmux-d87ab0cadf6ee30f253a815ebc80c14d2818391d.zip
Merge branch 'obsd-master'
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tty.c b/tty.c
index 3892df6d..23a74255 100644
--- a/tty.c
+++ b/tty.c
@@ -105,9 +105,9 @@ tty_init(struct tty *tty, struct client *c, int fd, char *term)
memset(tty, 0, sizeof *tty);
if (term == NULL || *term == '\0')
- tty->termname = xstrdup("unknown");
+ tty->term_name = xstrdup("unknown");
else
- tty->termname = xstrdup(term);
+ tty->term_name = xstrdup(term);
tty->fd = fd;
tty->client = c;
@@ -177,7 +177,7 @@ tty_set_size(struct tty *tty, u_int sx, u_int sy)
int
tty_open(struct tty *tty, char **cause)
{
- tty->term = tty_term_find(tty->termname, tty->fd, cause);
+ tty->term = tty_term_find(tty->term_name, tty->fd, cause);
if (tty->term == NULL) {
tty_close(tty);
return (-1);
@@ -364,7 +364,7 @@ tty_free(struct tty *tty)
free(tty->ccolour);
free(tty->path);
- free(tty->termname);
+ free(tty->term_name);
}
void