diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-02-19 22:29:37 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-03-04 02:54:50 -0500 |
commit | 1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b (patch) | |
tree | 50769fb7ad5265349ca9713535b7345beab1e698 /sim/common/sim-load.c | |
parent | f97a10f1dca64077b71e3fc2a83caa8fe1434664 (diff) | |
download | gdb-1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b.zip gdb-1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b.tar.gz gdb-1a8a700e3a6fd88bcd5b3988a1f738da463f5b1b.tar.bz2 |
sim: convert old style prototypes
Most of these prototypes have been killed off, but we have a few left
in the sim tree. Clean them up so we can enable the -W flag for it.
Diffstat (limited to 'sim/common/sim-load.c')
-rw-r--r-- | sim/common/sim-load.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c index 48c0a93..f077065 100644 --- a/sim/common/sim-load.c +++ b/sim/common/sim-load.c @@ -56,15 +56,9 @@ static void xprintf_bfd_vma (host_callback *, bfd_vma); bfd * -sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p, lma_p, do_write) - SIM_DESC sd; - const char *myname; - host_callback *callback; - char *prog; - bfd *prog_bfd; - int verbose_p; - int lma_p; - sim_write_fn do_write; +sim_load_file (SIM_DESC sd, const char *myname, host_callback *callback, + char *prog, bfd *prog_bfd, int verbose_p, int lma_p, + sim_write_fn do_write) { asection *s; /* Record separately as we don't want to close PROG_BFD if it was passed. */ @@ -195,10 +189,8 @@ eprintf (host_callback *callback, const char *fmt, ...) /* Report how fast the transfer went. */ static void -report_transfer_performance (callback, data_count, start_time, end_time) - host_callback *callback; - unsigned long data_count; - time_t start_time, end_time; +report_transfer_performance (host_callback *callback, unsigned long data_count, + time_t start_time, time_t end_time) { xprintf (callback, "Transfer rate: "); if (end_time != start_time) @@ -213,9 +205,7 @@ report_transfer_performance (callback, data_count, start_time, end_time) This is intended to handle the vagaries of 32 vs 64 bits, etc. */ static void -xprintf_bfd_vma (callback, vma) - host_callback *callback; - bfd_vma vma; +xprintf_bfd_vma (host_callback *callback, bfd_vma vma) { /* FIXME: for now */ xprintf (callback, "0x%lx", (unsigned long) vma); |