diff options
author | 2017-01-11 16:09:57 +0000 | |
---|---|---|
committer | 2017-01-11 16:09:57 +0000 | |
commit | 437fa26dfa0d3d93c4b15869f6b78eb2e29e7bcd (patch) | |
tree | 803f080e89e33bf9acf00e5a23fb64f5a428a255 /usr.bin/tmux/tty.c | |
parent | Use a macro for looking up tty types. (diff) | |
download | wireguard-openbsd-437fa26dfa0d3d93c4b15869f6b78eb2e29e7bcd.tar.xz wireguard-openbsd-437fa26dfa0d3d93c4b15869f6b78eb2e29e7bcd.zip |
Add a format for terminal type.
Diffstat (limited to 'usr.bin/tmux/tty.c')
-rw-r--r-- | usr.bin/tmux/tty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c index e12f0e4fce7..5c10d3beaeb 100644 --- a/usr.bin/tmux/tty.c +++ b/usr.bin/tmux/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.219 2017/01/07 15:28:13 nicm Exp $ */ +/* $OpenBSD: tty.c,v 1.220 2017/01/11 16:09:57 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -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 |