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

Diff for /src/usr.bin/tmux/tty-keys.c between version 1.46 and 1.47

version 1.46, 2012/11/22 14:26:04 version 1.47, 2012/11/22 14:41:11
Line 724 
Line 724 
 int  int
 tty_keys_device(struct tty *tty, const char *buf, size_t len, size_t *size)  tty_keys_device(struct tty *tty, const char *buf, size_t len, size_t *size)
 {  {
         u_int i, n;          u_int i, class;
         char  tmp[64], *endptr;          char  tmp[64], *endptr;
   
         /*          /*
Line 764 
Line 764 
                 return (0);                  return (0);
   
         /* Convert service class. */          /* Convert service class. */
         n = strtoul(tmp, &endptr, 10);          class = strtoul(tmp, &endptr, 10);
         if (*endptr != ';')          if (*endptr != ';')
                 n = 0;                  class = 0;
   
         log_debug("received service class %u", n);          log_debug("received service class %u", class);
         tty->service_class = n;          tty_set_class(tty, class);
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47