aboutsummaryrefslogtreecommitdiff
path: root/gdb/ser-unix.c
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2000-10-25 14:19:38 +0000
committerFernando Nasser <fnasser@redhat.com>2000-10-25 14:19:38 +0000
commitfaa5effd27ffdd000aefe2f7cc9e6e915283c910 (patch)
tree0b528a9058ca25fcbf8e2705946671107ed56b72 /gdb/ser-unix.c
parentc5b739b50de6c5e5a6c81bbaf72585e62d41ea90 (diff)
downloadfsf-binutils-gdb-faa5effd27ffdd000aefe2f7cc9e6e915283c910.zip
fsf-binutils-gdb-faa5effd27ffdd000aefe2f7cc9e6e915283c910.tar.gz
fsf-binutils-gdb-faa5effd27ffdd000aefe2f7cc9e6e915283c910.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index 73555b2..a6c7b04 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. */