Fix type declaration (#357)

`pty` is a file descriptor (i.e. an int), not a pid.
This commit is contained in:
Adam Bliss
2020-05-18 22:20:57 -04:00
committed by GitHub
parent b25259742c
commit 2beab0d203

View File

@@ -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;