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

Diff for /src/usr.bin/tmux/session.c between version 1.47 and 1.48

version 1.47, 2015/04/22 15:32:33 version 1.48, 2015/04/25 18:09:28
Line 70 
Line 70 
         return (RB_FIND(sessions, &sessions, &s));          return (RB_FIND(sessions, &sessions, &s));
 }  }
   
   /* Find session by id parsed from a string. */
   struct session *
   session_find_by_id_str(const char *s)
   {
           const char      *errstr;
           u_int            id;
   
           if (*s != '$')
                   return (NULL);
   
           id = strtonum(s + 1, 0, UINT_MAX, &errstr);
           if (errstr != NULL)
                   return (NULL);
           return (session_find_by_id(id));
   }
   
 /* Find session by id. */  /* Find session by id. */
 struct session *  struct session *
 session_find_by_id(u_int id)  session_find_by_id(u_int id)

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