]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Remove UNICOS code missed during removal.
authorDarren Tucker <dtucker@dtucker.net>
Mon, 26 Mar 2018 01:58:09 +0000 (12:58 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 26 Mar 2018 02:24:28 +0000 (13:24 +1100)
Fixes compile error on AIX.

openbsd-compat/bsd-openpty.c

index 48fb6059e40a0b24dad58a371c2e0fa64a5b8938..e8ad542f8d5577ae907a358ca96d8238ff8a6891 100644 (file)
@@ -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];