]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
openpty: fix faulty rename 3478/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 5 Jul 2020 21:42:31 +0000 (23:42 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 5 Jul 2020 21:45:38 +0000 (23:45 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/include/openpty.c

index 37aa0fbbeb82f17c54bf392d731482829c1427da..5a1bdbadb29547b6cc67e1dfa3fd0dc53462e1d5 100644 (file)
@@ -32,9 +32,9 @@
 #include <sys/types.h>
 #include <sys/ioctl.h>
 
-#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);