mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-24 04:34:19 +01:00
Fix type declaration (#357)
`pty` is a file descriptor (i.e. an int), not a pid.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user