diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2018-05-02 20:59:34 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2018-05-02 20:59:34 +0200 |
commit | 4f66937b2bfadfa54aa099ea9bbb9f2f0dc2416f (patch) | |
tree | c8512ec9d9bd91c3171248f65d619e2e6014c006 /src/pterm.c | |
parent | e6d9e7073ea1e23a3b22440fa69ce92691ca328d (diff) |
POTD skeleton #41.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/pterm.c')
-rw-r--r-- | src/pterm.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pterm.c b/src/pterm.c index 47f433c..050e9b2 100644 --- a/src/pterm.c +++ b/src/pterm.c @@ -102,12 +102,14 @@ pty_make_controlling_tty(int *ttyfd, const char *tty) /* Changes the window size associated with the pty. */ void -pty_change_window_size(int ptyfd, u_int row, u_int col, - u_int xpixel, u_int ypixel) +pty_change_window_size(int ptyfd, unsigned int row, + unsigned int col, + unsigned int xpixel, + unsigned int ypixel) { struct winsize w; - /* may truncate u_int -> u_short */ + /* may truncate unsigned int -> unsigned short */ w.ws_row = row; w.ws_col = col; w.ws_xpixel = xpixel; |