summaryrefslogtreecommitdiffstats
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 05:04:36 +0200
committerDamien Miller <djm@mindrot.org>2006-03-26 05:04:36 +0200
commit71a73671305a2248a6c4a243134ebf28f7d8ee7a (patch)
treec81a7c7ae47bfc385a42cf4f86a9df3af7eeda3e /ssh.c
parent - deraadt@cvs.openbsd.org 2006/03/20 17:17:23 (diff)
downloadopenssh-71a73671305a2248a6c4a243134ebf28f7d8ee7a.tar.xz
openssh-71a73671305a2248a6c4a243134ebf28f7d8ee7a.zip
- deraadt@cvs.openbsd.org 2006/03/20 18:14:02
[channels.c clientloop.c monitor_wrap.c monitor_wrap.h serverloop.c] [ssh.c sshpty.c sshpty.h] sprinkle u_int throughout pty subsystem, ok markus
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssh.c b/ssh.c
index 3615d1c40..550218444 100644
--- a/ssh.c
+++ b/ssh.c
@@ -889,10 +889,10 @@ ssh_session(void)
/* Store window size in the packet. */
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0)
memset(&ws, 0, sizeof(ws));
- packet_put_int(ws.ws_row);
- packet_put_int(ws.ws_col);
- packet_put_int(ws.ws_xpixel);
- packet_put_int(ws.ws_ypixel);
+ packet_put_int((u_int)ws.ws_row);
+ packet_put_int((u_int)ws.ws_col);
+ packet_put_int((u_int)ws.ws_xpixel);
+ packet_put_int((u_int)ws.ws_ypixel);
/* Store tty modes in the packet. */
tty_make_modes(fileno(stdin), NULL);