From: Stefan Monnier Date: Wed, 4 Jun 2003 23:21:11 +0000 (+0000) Subject: (allocate_pty): Revert part of the previous patch. X-Git-Tag: ttn-vms-21-2-B4~9734 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=26d7389d544b0316dd581719138ef82b020f5b17;p=emacs.git (allocate_pty): Revert part of the previous patch. (Faccept_process_output): Simplify. --- diff --git a/src/process.c b/src/process.c index 9d7f145dcde..fcc07a38c46 100644 --- a/src/process.c +++ b/src/process.c @@ -469,6 +469,7 @@ allocate_pty () for (i = 0; i < 16; i++) #endif { + struct stat stb; /* Used in some PTY_OPEN. */ #ifdef PTY_NAME_SPRINTF PTY_NAME_SPRINTF #else @@ -479,7 +480,6 @@ allocate_pty () PTY_OPEN; #else /* no PTY_OPEN */ { - struct stat stb; # ifdef IRIS /* Unusual IRIS code */ *ptyv = emacs_open ("/dev/ptc", O_RDWR | O_NDELAY, 0); @@ -3495,12 +3495,7 @@ Return non-nil iff we received any output before the timeout expired. */) seconds = -1; } else - { - if (NILP (process)) - seconds = -1; - else - seconds = 0; - } + seconds = NILP (process) ? -1 : 0; if (NILP (process)) XSETFASTINT (process, 0);