openpty: fix faulty rename

parent eed7e917
...@@ -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