From: Mike Frysinger Date: Mon, 16 Mar 2015 06:13:31 +0000 (-0400) Subject: sim: convert some old prototypes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cd5ace4db98987881c71e33dcae418fd258c38d;p=binutils-gdb.git sim: convert some old prototypes --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index b7567331d2c..d3b86421c0a 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2015-03-16 Mike Frysinger + + * gentmap.c, run.c: Convert old style prototypes. + 2015-03-16 Mike Frysinger * acinclude.m4 (SIM_AC_COMMON): Call AH_BOTTOM. Delete logic for diff --git a/sim/common/gentmap.c b/sim/common/gentmap.c index 1769c53639c..fbc09a2ed30 100644 --- a/sim/common/gentmap.c +++ b/sim/common/gentmap.c @@ -31,7 +31,7 @@ static struct tdefs open_tdefs[] = { }; static void -gen_targ_vals_h () +gen_targ_vals_h (void) { struct tdefs *t; @@ -60,7 +60,7 @@ gen_targ_vals_h () } static void -gen_targ_map_c () +gen_targ_map_c (void) { struct tdefs *t; @@ -110,9 +110,7 @@ gen_targ_map_c () } int -main (argc, argv) - int argc; - char *argv[]; +main (int argc, char *argv[]) { if (argc != 2) abort (); diff --git a/sim/common/run.c b/sim/common/run.c index 3be10ab16d6..196d5325e87 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -85,9 +85,7 @@ cntrl_c (int sig ATTRIBUTE_UNUSED) } int -main (ac, av) - int ac; - char **av; +main (int ac, char **av) { RETSIGTYPE (*prev_sigint) (); bfd *abfd; @@ -357,7 +355,7 @@ usage (int help) } static void -print_version () +print_version (void) { printf ("GNU simulator %s%s\n", PKGVERSION, version); }