diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-03-26 12:58:09 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-03-26 13:24:28 +1100 |
commit | bc3f80e4d191b8e48650045dfa8a682cd3aabd4d (patch) | |
tree | cdeca0800f88335ce34fa0327af8179dc92730eb /openbsd-compat/bsd-openpty.c | |
parent | 9d57762c24882e2f000a21a0ffc8c5908a1fa738 (diff) |
Remove UNICOS code missed during removal.
Fixes compile error on AIX.
Diffstat (limited to 'openbsd-compat/bsd-openpty.c')
-rw-r--r-- | openbsd-compat/bsd-openpty.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c index 48fb6059e..e8ad542f8 100644 --- a/openbsd-compat/bsd-openpty.c +++ b/openbsd-compat/bsd-openpty.c | |||
@@ -147,20 +147,6 @@ openpty(int *amaster, int *aslave, char *name, struct termios *termp, | |||
147 | } | 147 | } |
148 | return (0); | 148 | return (0); |
149 | 149 | ||
150 | for (i = 0; i < highpty; i++) { | ||
151 | snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i); | ||
152 | snprintf(ttbuf, sizeof(ttbuf), "/dev/ttyp%03d", i); | ||
153 | if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1) | ||
154 | continue; | ||
155 | /* Open the slave side. */ | ||
156 | if ((*aslave = open(ttbuf, O_RDWR|O_NOCTTY)) == -1) { | ||
157 | close(*amaster); | ||
158 | return (-1); | ||
159 | } | ||
160 | return (0); | ||
161 | } | ||
162 | return (-1); | ||
163 | |||
164 | #else | 150 | #else |
165 | /* BSD-style pty code. */ | 151 | /* BSD-style pty code. */ |
166 | char ptbuf[64], ttbuf[64]; | 152 | char ptbuf[64], ttbuf[64]; |