diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 2 |
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 | { |