]> andersk Git - openssh.git/blobdiff - sshpty.c
- deraadt@cvs.openbsd.org 2006/03/20 18:14:02
[openssh.git] / sshpty.c
index 2e42aee1157cabef6958a6c2106d3b54b4b46b64..9ac4903efa533bb7b9083392ea9ddd7b2516f4d8 100644 (file)
--- a/sshpty.c
+++ b/sshpty.c
@@ -46,7 +46,7 @@
  */
 
 int
-pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
+pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, size_t namebuflen)
 {
        /* openpty(3) exists in OSF/1 and some other os'es */
        char *name;
@@ -169,11 +169,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;
This page took 0.035531 seconds and 4 git commands to generate.