From: Christian Brauner Date: Sun, 5 Jul 2020 21:42:31 +0000 (+0200) Subject: openpty: fix faulty rename X-Git-Tag: lxc-5.0.0~393^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3478%2Fhead;p=thirdparty%2Flxc.git openpty: fix faulty rename Signed-off-by: Christian Brauner --- diff --git a/src/include/openpty.c b/src/include/openpty.c index 37aa0fbbe..5a1bdbadb 100644 --- a/src/include/openpty.c +++ b/src/include/openpty.c @@ -32,9 +32,9 @@ #include #include -#define _PATH_DEVPTMX "/dev/ptx" +#define _PATH_DEVPTMX "/dev/ptmx" -int openpty (int *aptx, int *apts, char *name, struct termios *termp, +int openpty (int *aptx, int *apty, char *name, struct termios *termp, struct winsize *winp) { char buf[PATH_MAX]; @@ -64,7 +64,7 @@ int openpty (int *aptx, int *apts, char *name, struct termios *termp, ioctl(pty, TIOCSWINSZ, winp); *aptx = ptx; - *apts = pty; + *apty = pty; if (name != NULL) strcpy(name, buf);