diff options
author | Fernando Nasser <fnasser@redhat.com> | 2000-10-25 14:19:38 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2000-10-25 14:19:38 +0000 |
commit | a82f4c145312862a73f18cef2434ac05379bbc37 (patch) | |
tree | 3c173c959cff59953c1b94b53a9abc456160bb21 /gdb/ser-unix.c | |
parent | aaf822285b21d73562a769a86772359f4fe0496f (diff) | |
download | gdb-a82f4c145312862a73f18cef2434ac05379bbc37.tar.gz |
2000-10-25 Fernando Nasser <fnasser@cygnus.com>
* ser-unix.c (do_unix_readchar): Coding style improvement only.
Diffstat (limited to 'gdb/ser-unix.c')
-rw-r--r-- | gdb/ser-unix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 73555b27a0a..a6c7b045551 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -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. */ |