diff options
author | Doug Evans <dje@google.com> | 2010-05-03 20:58:21 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-05-03 20:58:21 +0000 |
commit | ae462839efc22221630119059db5e6e20c7f843c (patch) | |
tree | d3760c3c4cb03f5387ab69e89ea8aa80a825e4b2 | |
parent | 24b066ba2b90ef215c6c414ae1d15f79a8addefc (diff) | |
download | gdb-ae462839efc22221630119059db5e6e20c7f843c.zip gdb-ae462839efc22221630119059db5e6e20c7f843c.tar.gz gdb-ae462839efc22221630119059db5e6e20c7f843c.tar.bz2 |
* event-loop.c (gdb_timer): Delete unused global.
(create_timer): Update.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/event-loop.c | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f3456c..4aa6df4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-05-03 Doug Evans <dje@google.com> + + * event-loop.c (gdb_timer): Delete unused global. + (create_timer): Update. + 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com> * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the diff --git a/gdb/event-loop.c b/gdb/event-loop.c index 533eefe..735d0f6 100644 --- a/gdb/event-loop.c +++ b/gdb/event-loop.c @@ -218,8 +218,7 @@ struct gdb_timer struct gdb_timer *next; timer_handler_func *proc; /* Function to call to do the work */ gdb_client_data client_data; /* Argument to async_handler_func */ - } -gdb_timer; + }; /* List of currently active timers. It is sorted in order of increasing timers. */ @@ -1188,7 +1187,7 @@ create_timer (int milliseconds, timer_handler_func * proc, gdb_client_data clien gettimeofday (&time_now, NULL); - timer_ptr = (struct gdb_timer *) xmalloc (sizeof (gdb_timer)); + timer_ptr = (struct gdb_timer *) xmalloc (sizeof (*timer_ptr)); timer_ptr->when.tv_sec = time_now.tv_sec + delta.tv_sec; timer_ptr->when.tv_usec = time_now.tv_usec + delta.tv_usec; /* carry? */ |