diff options
author | Christopher Faylor <me@cgf.cx> | 2012-07-04 06:01:16 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-07-04 06:01:16 +0000 |
commit | 0bdf68577d0d569f4c22e0e31bbe7fbc8c4172ab (patch) | |
tree | f4a8e938240d501aab7e5dc0923c8963aece8b42 | |
parent | aa01a03c10af262890055b02f8623dba286fa366 (diff) | |
download | newlib-0bdf68577d0d569f4c22e0e31bbe7fbc8c4172ab.zip newlib-0bdf68577d0d569f4c22e0e31bbe7fbc8c4172ab.tar.gz newlib-0bdf68577d0d569f4c22e0e31bbe7fbc8c4172ab.tar.bz2 |
* fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment to
bytes_in_pipe found by Clang.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9504c28..896cee9 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-07-04 Christopher Faylor <me.cygwin2012@cgf.cx> + + * fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate + assignment to bytes_in_pipe found by Clang. + 2012-07-02 Christopher Faylor <me.cygwin2012@cgf.cx> * exceptions.cc (exception::handle): Use error_code in klog, as diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index fe7e283..2331a04 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -835,7 +835,6 @@ fhandler_pty_slave::read (void *ptr, size_t& len) if (!ReadFile (get_handle (), buf, readlen, &n, NULL)) { termios_printf ("read failed, %E"); - bytes_in_pipe = 0; raise (SIGHUP); bytes_in_pipe = 0; ptr = NULL; |