=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshpty.c,v retrieving revision 1.12.6.1 retrieving revision 1.13 diff -u -r1.12.6.1 -r1.13 --- src/usr.bin/ssh/sshpty.c 2006/10/06 03:19:33 1.12.6.1 +++ src/usr.bin/ssh/sshpty.c 2006/02/07 01:42:00 1.13 @@ -1,4 +1,3 @@ -/* $OpenBSD: sshpty.c,v 1.12.6.1 2006/10/06 03:19:33 brad Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -12,19 +11,11 @@ * called by a name other than "ssh" or "Secure Shell". */ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "includes.h" +RCSID("$OpenBSD: sshpty.c,v 1.13 2006/02/07 01:42:00 stevesk Exp $"); + #include -#include #include -#include #include "sshpty.h" #include "log.h" @@ -46,7 +37,7 @@ */ int -pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen) +pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) { char buf[64]; int i; @@ -122,12 +113,11 @@ /* Changes the window size associated with the pty. */ void -pty_change_window_size(int ptyfd, u_int row, u_int col, - u_int xpixel, u_int ypixel) +pty_change_window_size(int ptyfd, int row, int col, + int xpixel, int ypixel) { struct winsize w; - /* may truncate u_int -> u_short */ w.ws_row = row; w.ws_col = col; w.ws_xpixel = xpixel;