From 2beab0d203926af0ed4c3147a79b07dbde734835 Mon Sep 17 00:00:00 2001 From: Adam Bliss Date: Mon, 18 May 2020 22:20:57 -0400 Subject: [PATCH] Fix type declaration (#357) `pty` is a file descriptor (i.e. an int), not a pid. --- src/terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal.c b/src/terminal.c index cdf9fe3..2954669 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -41,7 +41,7 @@ pid_t pty_fork(int *pty, const char *file, char *const argv[], const char *term) return pid; } -int pty_resize(pid_t pty, int cols, int rows) { +int pty_resize(int pty, int cols, int rows) { struct winsize size; size.ws_col = (unsigned short)cols; -- 2.43.4