diff options
author | Colin Watson <cjwatson@debian.org> | 2016-12-20 00:22:52 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-12-20 00:22:52 +0000 |
commit | 971a7653746a6972b907dfe0ce139c06e4a6f482 (patch) | |
tree | 70fb964265d57ae4967be55b75dbb2a122e9b969 /openbsd-compat/bsd-openpty.c | |
parent | a8ed8d256b2e2c05b0c15565a7938028c5192277 (diff) | |
parent | 4a354fc231174901f2629437c2a6e924a2dd6772 (diff) |
Import openssh_7.4p1.orig.tar.gz
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index 9777eb556..b28235860 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c | |||
@@ -122,7 +122,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, | |||
122 | } | 122 | } |
123 | 123 | ||
124 | /* | 124 | /* |
125 | * Try to push the appropriate streams modules, as described | 125 | * Try to push the appropriate streams modules, as described |
126 | * in Solaris pts(7). | 126 | * in Solaris pts(7). |
127 | */ | 127 | */ |
128 | ioctl(*aslave, I_PUSH, "ptem"); | 128 | ioctl(*aslave, I_PUSH, "ptem"); |
@@ -184,7 +184,7 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, | |||
184 | struct termios tio; | 184 | struct termios tio; |
185 | 185 | ||
186 | for (i = 0; i < num_ptys; i++) { | 186 | for (i = 0; i < num_ptys; i++) { |
187 | snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c", | 187 | snprintf(ptbuf, sizeof(ptbuf), "/dev/pty%c%c", |
188 | ptymajors[i / num_minors], ptyminors[i % num_minors]); | 188 | ptymajors[i / num_minors], ptyminors[i % num_minors]); |
189 | snprintf(ttbuf, sizeof(ttbuf), "/dev/tty%c%c", | 189 | snprintf(ttbuf, sizeof(ttbuf), "/dev/tty%c%c", |
190 | ptymajors[i / num_minors], ptyminors[i % num_minors]); | 190 | ptymajors[i / num_minors], ptyminors[i % num_minors]); |