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

Diff for /src/usr.bin/ssh/sshpty.c between version 1.12 and 1.12.6.1

version 1.12, 2004/06/21 17:36:31 version 1.12.6.1, 2006/10/06 03:19:33
Line 1 
Line 1 
   /* $OpenBSD$ */
 /*  /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>   * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland   * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Line 11 
Line 12 
  * called by a name other than "ssh" or "Secure Shell".   * called by a name other than "ssh" or "Secure Shell".
  */   */
   
 #include "includes.h"  #include <sys/types.h>
 RCSID("$OpenBSD$");  #include <sys/ioctl.h>
   #include <sys/stat.h>
   #include <errno.h>
   #include <fcntl.h>
   #include <grp.h>
   #include <paths.h>
   #include <pwd.h>
   #include <string.h>
   #include <termios.h>
   #include <unistd.h>
 #include <util.h>  #include <util.h>
   #include <stdarg.h>
   
 #include "sshpty.h"  #include "sshpty.h"
 #include "log.h"  #include "log.h"
   
Line 35 
Line 46 
  */   */
   
 int  int
 pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)  pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen)
 {  {
         char buf[64];          char buf[64];
         int i;          int i;
Line 111 
Line 122 
 /* Changes the window size associated with the pty. */  /* Changes the window size associated with the pty. */
   
 void  void
 pty_change_window_size(int ptyfd, int row, int col,  pty_change_window_size(int ptyfd, u_int row, u_int col,
         int xpixel, int ypixel)          u_int xpixel, u_int ypixel)
 {  {
         struct winsize w;          struct winsize w;
   
           /* may truncate u_int -> u_short */
         w.ws_row = row;          w.ws_row = row;
         w.ws_col = col;          w.ws_col = col;
         w.ws_xpixel = xpixel;          w.ws_xpixel = xpixel;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.12.6.1