2000-10-25 Fernando Nasser <fnasser@cygnus.com>
authorFernando Nasser <fnasser@redhat.com>
Wed, 25 Oct 2000 14:19:38 +0000 (14:19 +0000)
committerFernando Nasser <fnasser@redhat.com>
Wed, 25 Oct 2000 14:19:38 +0000 (14:19 +0000)
        * ser-unix.c (do_unix_readchar): Coding style improvement only.

gdb/ChangeLog
gdb/ser-unix.c

index cb488c5b898f70ed15ef8c515c5876ca908fcc0a..77949b3a1864a33756efa3c72cd1b511c0c15e96 100644 (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
index 73555b27a0a6e0fe7b1651f423be5753d2c55604..a6c7b04555168131cde80dce2a947166ee21c682 100644 (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. */
This page took 0.02869 seconds and 4 git commands to generate.