diff options
author | Christopher Faylor <me@cgf.cx> | 2004-05-17 15:55:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2004-05-17 15:55:42 +0000 |
commit | 3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7 (patch) | |
tree | 8c56ed0fcb0b2237635b07efb5aab3fe88027ade | |
parent | 641654f72a412df1dfe97890bdffbb8b5fa74eb2 (diff) | |
download | newlib-3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7.zip newlib-3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7.tar.gz newlib-3271e9f9e38cb9d0e51554680f1f87c3ea3fe5f7.tar.bz2 |
* tty.cc (tty_list::init): Move hmaster initialization earlier to prevent
compilation error.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/tty.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 34a4468..3a83a59 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2004-05-17 Christopher Faylor <cgf@alum.bu.edu> + * tty.cc (tty_list::init): Move hmaster initialization earlier to + prevent compilation error. + +2004-05-17 Christopher Faylor <cgf@alum.bu.edu> + Change the name "title_mutex" to "tty_mutex" throughout. * tty.h (tty_list::allocate_tty): Turn argument into a boolean. * tty.cc (tty_list::init): Protect entire allocation operation with diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index 6ced84b..fd8132c 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++) { |