mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-28 22:21:26 +08:00
2000-10-25 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Coding style improvement only.
This commit is contained in:
@ -927,7 +927,8 @@ do_unix_readchar (serial_t scb, int timeout)
|
||||
}
|
||||
|
||||
status = ser_unix_wait_for (scb, delta);
|
||||
timeout = (timeout <= 0) ? timeout : (timeout - delta);
|
||||
if (timeout > 0)
|
||||
timeout -= delta;
|
||||
|
||||
/* If we got a character or an error back from wait_for, then we can
|
||||
break from the loop before the timeout is completed. */
|
||||
|
Reference in New Issue
Block a user