summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/clientloop.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-03-20 18:14:02 +0000
committerderaadt <deraadt@openbsd.org>2006-03-20 18:14:02 +0000
commit39b7de2da600432479e8bb33cfda38e86c7f59a7 (patch)
tree60f0172c7c669551b3f6a9bc6cd95624138b391f /usr.bin/ssh/clientloop.c
parentmake `rcs -a' use cvs_strsplit() for easiness; OK joris@. (diff)
downloadwireguard-openbsd-39b7de2da600432479e8bb33cfda38e86c7f59a7.tar.xz
wireguard-openbsd-39b7de2da600432479e8bb33cfda38e86c7f59a7.zip
sprinkle u_int throughout pty subsystem, ok markus
Diffstat (limited to 'usr.bin/ssh/clientloop.c')
-rw-r--r--usr.bin/ssh/clientloop.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c
index b7dad903751..89d7af88017 100644
--- a/usr.bin/ssh/clientloop.c
+++ b/usr.bin/ssh/clientloop.c
@@ -430,10 +430,10 @@ client_check_window_change(void)
if (ioctl(fileno(stdin), TIOCGWINSZ, &ws) < 0)
return;
packet_start(SSH_CMSG_WINDOW_SIZE);
- 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);
packet_send();
}
}
@@ -1877,10 +1877,10 @@ client_session2_setup(int id, int want_tty, int want_subsystem,
channel_request_start(id, "pty-req", 0);
packet_put_cstring(term != NULL ? term : "");
- packet_put_int(ws.ws_col);
- packet_put_int(ws.ws_row);
- packet_put_int(ws.ws_xpixel);
- packet_put_int(ws.ws_ypixel);
+ packet_put_int((u_int)ws.ws_col);
+ packet_put_int((u_int)ws.ws_row);
+ packet_put_int((u_int)ws.ws_xpixel);
+ packet_put_int((u_int)ws.ws_ypixel);
tio = get_saved_tio();
tty_make_modes(-1, tiop != NULL ? tiop : &tio);
packet_send();