diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-06-17 21:45:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-06-17 21:45:55 +0000 |
commit | bf962092548917d88b7a4368dbb36977777836da (patch) | |
tree | afc2796a4055fc19de4ebb0ff1d2fbe67f3c1a52 /sim/common/sim-events.c | |
parent | 78e731cd36da5f52b759bbf36cc1eb5d79de38c8 (diff) | |
download | gdb-bf962092548917d88b7a4368dbb36977777836da.zip gdb-bf962092548917d88b7a4368dbb36977777836da.tar.gz gdb-bf962092548917d88b7a4368dbb36977777836da.tar.bz2 |
* sim-memopt.c: Include <unistd.h>.
(do_memopt_add): Fix printf format.
* sim-events.c (sim_events_schedule): Initialize ``dummy''.
Diffstat (limited to 'sim/common/sim-events.c')
-rw-r--r-- | sim/common/sim-events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/common/sim-events.c b/sim/common/sim-events.c index 22531e3..6cd75ea 100644 --- a/sim/common/sim-events.c +++ b/sim/common/sim-events.c @@ -481,6 +481,7 @@ sim_events_schedule (SIM_DESC sd, void *data) { va_list dummy; + memset (&dummy, 0, sizeof dummy); return sim_events_schedule_vtracef (sd, delta_time, handler, data, NULL, dummy); } |