=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tty.c,v retrieving revision 1.219 retrieving revision 1.220 diff -u -r1.219 -r1.220 --- src/usr.bin/tmux/tty.c 2017/01/07 15:28:13 1.219 +++ src/usr.bin/tmux/tty.c 2017/01/11 16:09:57 1.220 @@ -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 @@ -105,9 +105,9 @@ 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 @@ 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 @@ free(tty->ccolour); free(tty->path); - free(tty->termname); + free(tty->term_name); } void