aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2011-03-16 19:36:27 -0700
committerPaul Eggert2011-03-16 19:36:27 -0700
commit57048744037204ae0cef40cdca9d8a967a4e1407 (patch)
treeb69ab81e4eb48a4f95d911e9ae8a25f7da38a8dd /src/process.c
parent615f2d59a5ee849bc46c3fa57d41fd136f2d0962 (diff)
downloademacs-57048744037204ae0cef40cdca9d8a967a4e1407.tar.gz
emacs-57048744037204ae0cef40cdca9d8a967a4e1407.zip
* s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
* process.c (allocate_pty): Don't declare stb unless it's needed.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 39fa26e8b54..a026174bd23 100644
--- a/src/process.c
+++ b/src/process.c
@@ -545,7 +545,6 @@ allocate_pty (void)
545 for (i = 0; i < 16; i++) 545 for (i = 0; i < 16; i++)
546#endif 546#endif
547 { 547 {
548 struct stat stb; /* Used in some PTY_OPEN. */
549#ifdef PTY_NAME_SPRINTF 548#ifdef PTY_NAME_SPRINTF
550 PTY_NAME_SPRINTF 549 PTY_NAME_SPRINTF
551#else 550#else
@@ -562,6 +561,7 @@ allocate_pty (void)
562 three failures in a row before deciding that we've reached the 561 three failures in a row before deciding that we've reached the
563 end of the ptys. */ 562 end of the ptys. */
564 int failed_count = 0; 563 int failed_count = 0;
564 struct stat stb;
565 565
566 if (stat (pty_name, &stb) < 0) 566 if (stat (pty_name, &stb) < 0)
567 { 567 {