aboutsummaryrefslogtreecommitdiff
path: root/sim/common/sim-options.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-03-30 19:43:42 +0000
committerMike Frysinger <vapier@gentoo.org>2010-03-30 19:43:42 +0000
commitdc41661593ac273875b8a1ccb8d0f98a345f5f46 (patch)
tree130baf324cb88c52c2f75a9f7673a66e3f45ddc2 /sim/common/sim-options.c
parentf68eb6123c5acd02f317c71e5e7094be42a32247 (diff)
downloadgdb-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-options.c')
-rw-r--r--sim/common/sim-options.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c
index 3369ca2..571b292 100644
--- a/sim/common/sim-options.c
+++ b/sim/common/sim-options.c
@@ -489,8 +489,7 @@ standard_install (SIM_DESC sd)
#define ARG_HASH(a) ((256 * (unsigned char) a[0] + (unsigned char) a[1]) % ARG_HASH_SIZE)
static int
-dup_arg_p (arg)
- char *arg;
+dup_arg_p (char *arg)
{
int hash;
static char **arg_table = NULL;
@@ -520,9 +519,7 @@ dup_arg_p (arg)
/* Called by sim_open to parse the arguments. */
SIM_RC
-sim_parse_args (sd, argv)
- SIM_DESC sd;
- char **argv;
+sim_parse_args (SIM_DESC sd, char **argv)
{
int c, i, argc, num_opts;
char *p, *short_options;
@@ -807,9 +804,7 @@ print_help (SIM_DESC sd, sim_cpu *cpu, const struct option_list *ol, int is_comm
/* Print help messages for the options. */
void
-sim_print_help (sd, is_command)
- SIM_DESC sd;
- int is_command;
+sim_print_help (SIM_DESC sd, int is_command)
{
if (STATE_OPEN_KIND (sd) == SIM_OPEN_STANDALONE)
sim_io_printf (sd, "Usage: %s [options] program [program args]\n",