diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 19:43:42 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 19:43:42 +0000 |
commit | dc41661593ac273875b8a1ccb8d0f98a345f5f46 (patch) | |
tree | 130baf324cb88c52c2f75a9f7673a66e3f45ddc2 /sim/common/sim-utils.c | |
parent | f68eb6123c5acd02f317c71e5e7094be42a32247 (diff) | |
download | gdb-dc41661593ac273875b8a1ccb8d0f98a345f5f46.zip gdb-dc41661593ac273875b8a1ccb8d0f98a345f5f46.tar.gz gdb-dc41661593ac273875b8a1ccb8d0f98a345f5f46.tar.bz2 |
sim: convert old style function definitions
GCC currently emits warnings like:
nrun.c: In function 'usage':
nrun.c:223: warning: old-style function definition
Diffstat (limited to 'sim/common/sim-utils.c')
-rw-r--r-- | sim/common/sim-utils.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index 033be5c..fb84eb3 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -218,10 +218,7 @@ sim_add_commas (char *buf, int sizeof_buf, unsigned long value) bfd open. */ SIM_RC -sim_analyze_program (sd, prog_name, prog_bfd) - SIM_DESC sd; - char *prog_name; - bfd *prog_bfd; +sim_analyze_program (SIM_DESC sd, char *prog_name, bfd *prog_bfd) { asection *s; SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); @@ -295,7 +292,7 @@ sim_analyze_program (sd, prog_name, prog_bfd) /* Called before sim_elapsed_time_since to get a reference point. */ SIM_ELAPSED_TIME -sim_elapsed_time_get () +sim_elapsed_time_get (void) { #ifdef HAVE_GETRUSAGE struct rusage mytime; @@ -315,8 +312,7 @@ sim_elapsed_time_get () The actual time may be cpu usage (preferred) or wall clock. */ unsigned long -sim_elapsed_time_since (start) - SIM_ELAPSED_TIME start; +sim_elapsed_time_since (SIM_ELAPSED_TIME start) { #ifdef HAVE_GETRUSAGE return sim_elapsed_time_get () - start; |