X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/a8c61c7d20a186d09a661c4d107bcbc29e4da97a..dd2bc323b61ed6f36d57a713c9c9c62e4b988f6e:/packages/libutil/pty.c diff --git a/packages/libutil/pty.c b/packages/libutil/pty.c index a2b89580..435e75e9 100644 --- a/packages/libutil/pty.c +++ b/packages/libutil/pty.c @@ -7,7 +7,7 @@ #include -int openpty(int* amaster, int* aslave, char* name, struct termios* termp, struct winsize* winp) +int openpty(int* amaster, int* aslave, char* name, const struct termios* termp, const struct winsize* winp) { char buf[512]; @@ -45,7 +45,7 @@ int login_tty(int fd) } -int forkpty(int* amaster, char* name, struct termios* termp, struct winsize* winp) +int forkpty(int* amaster, char* name, const struct termios* termp, const struct winsize* winp) { int master, slave; if (openpty(&master, &slave, name, termp, winp) == -1) {