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-trace.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-trace.c')
-rw-r--r-- | sim/common/sim-trace.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sim/common/sim-trace.c b/sim/common/sim-trace.c index f59b324..9bb2458 100644 --- a/sim/common/sim-trace.c +++ b/sim/common/sim-trace.c @@ -147,11 +147,7 @@ static const OPTION trace_options[] = /* Set/reset the trace options indicated in MASK. */ static SIM_RC -set_trace_option_mask (sd, name, mask, arg) - SIM_DESC sd; - const char *name; - int mask; - const char *arg; +set_trace_option_mask (SIM_DESC sd, const char *name, int mask, const char *arg) { int trace_nr; int cpu_nr; @@ -226,11 +222,7 @@ set_trace_option_mask (sd, name, mask, arg) /* Set one trace option based on its IDX value. */ static SIM_RC -set_trace_option (sd, name, idx, arg) - SIM_DESC sd; - const char *name; - int idx; - const char *arg; +set_trace_option (SIM_DESC sd, const char *name, int idx, const char *arg) { return set_trace_option_mask (sd, name, 1 << idx, arg); } |