From: Adam Bliss Date: Tue, 19 May 2020 02:20:57 +0000 (-0400) Subject: Fix type declaration (#357) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=2beab0d203926af0ed4c3147a79b07dbde734835;p=ttyd.git Fix type declaration (#357) `pty` is a file descriptor (i.e. an int), not a pid. --- 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;