summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-03-26 12:58:09 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-03-26 13:24:28 +1100
commitbc3f80e4d191b8e48650045dfa8a682cd3aabd4d (patch)
treecdeca0800f88335ce34fa0327af8179dc92730eb
parent9d57762c24882e2f000a21a0ffc8c5908a1fa738 (diff)
Remove UNICOS code missed during removal.
Fixes compile error on AIX.
-rw-r--r--openbsd-compat/bsd-openpty.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/openbsd-compat/bsd-openpty.c b/openbsd-compat/bsd-openpty.c
index 48fb6059..e8ad542f 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,
}
return (0);
- for (i = 0; i < highpty; i++) {
- snprintf(ptbuf, sizeof(ptbuf), "/dev/pty/%03d", i);
- snprintf(ttbuf, sizeof(ttbuf), "/dev/ttyp%03d", i);
- if ((*amaster = open(ptbuf, O_RDWR|O_NOCTTY)) == -1)
- continue;
- /* Open the slave side. */
- if ((*aslave = open(ttbuf, O_RDWR|O_NOCTTY)) == -1) {
- close(*amaster);
- return (-1);
- }
- return (0);
- }
- return (-1);
-
#else
/* BSD-style pty code. */
char ptbuf[64], ttbuf[64];