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

Diff for /src/usr.bin/tmux/Attic/client-fn.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/07/26 12:58:44
Line 74 
Line 74 
         if (buf != NULL && len > 0)          if (buf != NULL && len > 0)
                 buffer_write(cctx->srv_out, buf, len);                  buffer_write(cctx->srv_out, buf, len);
 }  }
   
 void  
 client_write_server2(struct client_ctx *cctx,  
     enum hdrtype type, void *buf1, size_t len1, void *buf2, size_t len2)  
 {  
         struct hdr      hdr;  
   
         hdr.type = type;  
         hdr.size = len1 + len2;  
         buffer_write(cctx->srv_out, &hdr, sizeof hdr);  
   
         if (buf1 != NULL && len1 > 0)  
                 buffer_write(cctx->srv_out, buf1, len1);  
         if (buf2 != NULL && len2 > 0)  
                 buffer_write(cctx->srv_out, buf2, len2);  
 }  

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2