[BACK]Return to tty.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/tty.c between version 1.219 and 1.220

version 1.219, 2017/01/07 15:28:13 version 1.220, 2017/01/11 16:09:57
Line 105 
Line 105 
         memset(tty, 0, sizeof *tty);          memset(tty, 0, sizeof *tty);
   
         if (term == NULL || *term == '\0')          if (term == NULL || *term == '\0')
                 tty->termname = xstrdup("unknown");                  tty->term_name = xstrdup("unknown");
         else          else
                 tty->termname = xstrdup(term);                  tty->term_name = xstrdup(term);
         tty->fd = fd;          tty->fd = fd;
         tty->client = c;          tty->client = c;
   
Line 177 
Line 177 
 int  int
 tty_open(struct tty *tty, char **cause)  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) {          if (tty->term == NULL) {
                 tty_close(tty);                  tty_close(tty);
                 return (-1);                  return (-1);
Line 364 
Line 364 
   
         free(tty->ccolour);          free(tty->ccolour);
         free(tty->path);          free(tty->path);
         free(tty->termname);          free(tty->term_name);
 }  }
   
 void  void

Legend:
Removed from v.1.219  
changed lines
  Added in v.1.220