From 39b7de2da600432479e8bb33cfda38e86c7f59a7 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 20 Mar 2006 18:14:02 +0000 Subject: sprinkle u_int throughout pty subsystem, ok markus --- usr.bin/ssh/sshpty.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/ssh/sshpty.c') diff --git a/usr.bin/ssh/sshpty.c b/usr.bin/ssh/sshpty.c index 5cd49b38bd4..43847271d55 100644 --- a/usr.bin/ssh/sshpty.c +++ b/usr.bin/ssh/sshpty.c @@ -41,7 +41,7 @@ */ 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]; int i; @@ -117,11 +117,12 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) /* Changes the window size associated with the pty. */ void -pty_change_window_size(int ptyfd, int row, int col, - int xpixel, int ypixel) +pty_change_window_size(int ptyfd, u_int row, u_int col, + u_int xpixel, u_int ypixel) { struct winsize w; + /* may truncate u_int -> u_short */ w.ws_row = row; w.ws_col = col; w.ws_xpixel = xpixel; -- cgit v1.2.3-59-g8ed1b