* fhandler.h (line_edit_status): Reorganize so that tests for error condition
can be < or >. * fhandler_tty.cc (fhandler_pty_master::write): Don't return after sending a signal. * fhandler_termios.cc (fhandler_termios::line_edit): Trivial change to use built-in bool types.
This commit is contained in:
@@ -1083,11 +1083,12 @@ fhandler_pty_master::write (const void *ptr, size_t len)
|
||||
for (i=0; i < (int) len; i++)
|
||||
{
|
||||
line_edit_status status = line_edit (p++, 1);
|
||||
if (status == line_edit_ok || status == line_edit_input_done)
|
||||
continue;
|
||||
if (status != line_edit_pipe_full)
|
||||
i = -1;
|
||||
break;
|
||||
if (status > line_edit_signalled)
|
||||
{
|
||||
if (status != line_edit_pipe_full)
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
Reference in New Issue
Block a user