From 4f66937b2bfadfa54aa099ea9bbb9f2f0dc2416f Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 2 May 2018 20:59:34 +0200 Subject: POTD skeleton #41. Signed-off-by: Toni Uhlig --- src/pterm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/pterm.c') 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; -- cgit v1.2.3