From 56a4d31a7f239e32a8be234dff8bb05425a6d9af Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 4 May 2009 04:43:50 +0000 Subject: [PATCH] * fhandler_console.cc (fhandler_console::write_console): Eliminate unneeded debugging output. (fhandler_console::write_normal): Eliminate unneeded __seterrno. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_console.cc | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b63c6cf8c..e7da5cf83 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2009-05-04 Christopher Faylor + + * fhandler_console.cc (fhandler_console::write_console): Eliminate + unneeded debugging output. + (fhandler_console::write_normal): Eliminate unneeded __seterrno. + 2009-05-04 Christopher Faylor * libc/minires.c (scanline): Accommodate ctype changes which disallow diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 616c17a3c..965f8aadf 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1036,7 +1036,6 @@ bool fhandler_console::write_console (PWCHAR buf, DWORD len, DWORD& done) DWORD nbytes = len > MAX_WRITE_CHARS ? MAX_WRITE_CHARS : len; if (!WriteConsoleW (get_output_handle (), buf, nbytes, &done, 0)) { - debug_printf ("write failed, handle %p", get_output_handle ()); __seterrno (); return false; } @@ -1512,7 +1511,6 @@ fhandler_console::write_normal (const unsigned char *src, if (!write_console (write_buf, buf_len, done)) { debug_printf ("multibyte sequence write failed, handle %p", get_output_handle ()); - __seterrno (); return 0; } found = src + (nfound - trunc_buf.buf - trunc_buf.len); @@ -1571,7 +1569,6 @@ fhandler_console::write_normal (const unsigned char *src, if (!write_console (write_buf, buf_len, done)) { debug_printf ("write failed, handle %p", get_output_handle ()); - __seterrno (); return 0; } if (len >= CONVERT_LIMIT)