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

Diff for /src/usr.bin/tmux/client.c between version 1.39 and 1.40

version 1.39, 2010/05/12 15:05:39 version 1.40, 2010/06/05 16:29:45
Line 17 
Line 17 
  */   */
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/ioctl.h>  
 #include <sys/socket.h>  #include <sys/socket.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #include <sys/un.h>  #include <sys/un.h>
Line 115 
Line 114 
 client_send_identify(int flags)  client_send_identify(int flags)
 {  {
         struct msg_identify_data        data;          struct msg_identify_data        data;
         struct winsize                  ws;  
         char                           *term;          char                           *term;
         int                             fd;          int                             fd;
   
         if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1)  
                 fatal("ioctl(TIOCGWINSZ)");  
         data.flags = flags;          data.flags = flags;
   
         if (getcwd(data.cwd, sizeof data.cwd) == NULL)          if (getcwd(data.cwd, sizeof data.cwd) == NULL)

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40