diff options
author | 2006-03-20 18:14:02 +0000 | |
---|---|---|
committer | 2006-03-20 18:14:02 +0000 | |
commit | 39b7de2da600432479e8bb33cfda38e86c7f59a7 (patch) | |
tree | 60f0172c7c669551b3f6a9bc6cd95624138b391f /usr.bin/ssh/sshpty.c | |
parent | make `rcs -a' use cvs_strsplit() for easiness; OK joris@. (diff) | |
download | wireguard-openbsd-39b7de2da600432479e8bb33cfda38e86c7f59a7.tar.xz wireguard-openbsd-39b7de2da600432479e8bb33cfda38e86c7f59a7.zip |
sprinkle u_int throughout pty subsystem, ok markus
Diffstat (limited to 'usr.bin/ssh/sshpty.c')
-rw-r--r-- | usr.bin/ssh/sshpty.c | 7 |
1 files changed, 4 insertions, 3 deletions
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; |