mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-25 13:09:48 +00:00
2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
From Eli Zaretskii <eliz@is.elta.co.il>: * event-loop.c (poll_timers): Don't compare delta.tv_sec with zero, since time_t might be unsigned.
This commit is contained in:
parent
b948cda90b
commit
2f16bb3237
@ -1,3 +1,10 @@
|
||||
2000-03-06 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
|
||||
|
||||
From Eli Zaretskii <eliz@is.elta.co.il>:
|
||||
|
||||
* event-loop.c (poll_timers): Don't compare delta.tv_sec with
|
||||
zero, since time_t might be unsigned.
|
||||
|
||||
2000-03-06 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i386-linux-nat.c (supply_fpregset): Mask off the reserved bits
|
||||
|
@ -1114,8 +1114,11 @@ poll_timers (void)
|
||||
}
|
||||
|
||||
/* Oops it expired already. Tell select / poll to return
|
||||
immediately. */
|
||||
if (delta.tv_sec < 0)
|
||||
immediately. (Cannot simply test if delta.tv_sec is negative
|
||||
because time_t might be unsigned.) */
|
||||
if (timer_list.first_timer->when.tv_sec < time_now.tv_sec
|
||||
|| (timer_list.first_timer->when.tv_sec == time_now.tv_sec
|
||||
&& timer_list.first_timer->when.tv_usec < time_now.tv_usec))
|
||||
{
|
||||
delta.tv_sec = 0;
|
||||
delta.tv_usec = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user