On linux it seems that _XTyname() only takes one argument, no buffer required.
authorPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 19:12:51 +0000 (19:12 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Sun, 11 Mar 2012 19:12:51 +0000 (19:12 +0000)
cde/lib/DtTerm/TermPrim/TermPrimGetPty-clone.c

index cbdc2e79fd3b991c36fa528db173f37bf6252192..238d51f7a4401930e9190a99f65152cadf985f51 100644 (file)
@@ -72,7 +72,11 @@ GetPty(char **ptySlave, char **ptyMaster)
 
     if ((ptyFd = open(*ptyMaster, O_RDWR, 0))) {
         _Xttynameparams tty_buf;
+#if defined(linux)
+       if (c = _XTtyname(ptyFd)) {
+#else
        if (c = _XTtyname(ptyFd, tty_buf)) {
+#endif
            *ptySlave = malloc(strlen(c) + 1);
            (void) strcpy(*ptySlave, c);