Unverified Commit 6d3b6851 by Stéphane Graber Committed by GitHub

Merge pull request #3478 from brauner/2020-07-05/fixes

openpty: fix faulty rename
parents 184de6b8 0a8409df
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/ioctl.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) struct winsize *winp)
{ {
char buf[PATH_MAX]; char buf[PATH_MAX];
...@@ -64,7 +64,7 @@ int openpty (int *aptx, int *apts, char *name, struct termios *termp, ...@@ -64,7 +64,7 @@ int openpty (int *aptx, int *apts, char *name, struct termios *termp,
ioctl(pty, TIOCSWINSZ, winp); ioctl(pty, TIOCSWINSZ, winp);
*aptx = ptx; *aptx = ptx;
*apts = pty; *apty = pty;
if (name != NULL) if (name != NULL)
strcpy(name, buf); strcpy(name, buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment