Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-17 19:55:42 +0400
committerChristopher Faylor <me@cgf.cx>2004-05-17 19:55:42 +0400
commit3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7 (patch)
tree8c56ed0fcb0b2237635b07efb5aab3fe88027ade /winsup/cygwin/tty.cc
parent641654f72a412df1dfe97890bdffbb8b5fa74eb2 (diff)
* tty.cc (tty_list::init): Move hmaster initialization earlier to prevent
compilation error.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 6ced84bb0..fd8132c3a 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -200,6 +200,7 @@ tty_list::allocate_tty (bool with_console)
{
HWND console;
int freetty = -1;
+ HANDLE hmaster = NULL;
/* FIXME: This whole function needs a protective mutex. */
@@ -237,7 +238,6 @@ tty_list::allocate_tty (bool with_console)
}
}
- HANDLE hmaster = NULL;
/* Is a tty allocated for console? */
for (int i = 0; i < NTTYS; i++)
{