(do_memopt_add): Fix printf format.
* sim-events.c (sim_events_schedule): Initialize ``dummy''.
+2002-06-17 Andrew Cagney <cagney@redhat.com>
+
+ * sim-memopt.c: Include <unistd.h>.
+ (do_memopt_add): Fix printf format.
+ * sim-events.c (sim_events_schedule): Initialize ``dummy''.
+
2002-06-16 Andrew Cagney <ac131313@redhat.com>
* aclocal.m4 (SIM_AC_OPTION_WARNINGS): Update to match GDB's
void *data)
{
va_list dummy;
+ memset (&dummy, 0, sizeof dummy);
return sim_events_schedule_vtracef (sd, delta_time, handler, data,
NULL, dummy);
}
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
/* Memory fill byte. */
static unsigned8 fill_byte_value;
{
sim_io_error (sd,
"Error, cannot confirm that mmap file is large enough "
- "(>= %d bytes)\n", bytes);
+ "(>= %ld bytes)\n", bytes);
}
free_buffer = mmap (0, bytes, PROT_READ|PROT_WRITE, MAP_SHARED, mmap_next_fd, 0);