summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-openpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r--openbsd-compat/bsd-openpty.c4
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]);