From 3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 17 May 2004 15:55:42 +0000 Subject: [PATCH] * tty.cc (tty_list::init): Move hmaster initialization earlier to prevent compilation error. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/tty.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 34a44682b..3a83a5981 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-05-17 Christopher Faylor + + * tty.cc (tty_list::init): Move hmaster initialization earlier to + prevent compilation error. + 2004-05-17 Christopher Faylor Change the name "title_mutex" to "tty_mutex" throughout. 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++) {