]> git.eshelyaron.com Git - emacs.git/commitdiff
(allocate_pty): Revert part of the previous patch.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Jun 2003 23:21:11 +0000 (23:21 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 4 Jun 2003 23:21:11 +0000 (23:21 +0000)
(Faccept_process_output): Simplify.

src/process.c

index 9d7f145dcde9b75d04b658c8b6c2272854557440..fcc07a38c46f3fe2b7bbaa09ea41d542aa873e34 100644 (file)
@@ -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);