2000-10-25 Fernando Nasser <fnasser@cygnus.com>

* ser-unix.c (do_unix_readchar): Coding style improvement only.
This commit is contained in:
Fernando Nasser 2000-10-25 14:19:38 +00:00
parent c5b739b50d
commit faa5effd27
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2000-10-25 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Coding style improvement only.
2000-10-25 Fernando Nasser <fnasser@cygnus.com>
* target.c (generic_mourn_inferior): Notify GUI that inferior is gone

View File

@ -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. */