=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshpty.c,v retrieving revision 1.16.2.1 retrieving revision 1.17 diff -u -r1.16.2.1 -r1.17 --- src/usr.bin/ssh/sshpty.c 2006/09/30 04:06:51 1.16.2.1 +++ src/usr.bin/ssh/sshpty.c 2006/03/19 18:51:19 1.17 @@ -1,4 +1,3 @@ -/* $OpenBSD: sshpty.c,v 1.16.2.1 2006/09/30 04:06:51 brad Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -12,19 +11,15 @@ * called by a name other than "ssh" or "Secure Shell". */ -#include +#include "includes.h" + #include +#include #include -#include -#include -#include + #include -#include -#include #include -#include #include -#include #include "sshpty.h" #include "log.h" @@ -46,7 +41,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 +117,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;