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/testsuite/common | |
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/testsuite/common')
-rw-r--r-- | sim/testsuite/common/bits-gen.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sim/testsuite/common/bits-gen.c b/sim/testsuite/common/bits-gen.c index 5f1e51d..6666587 100644 --- a/sim/testsuite/common/bits-gen.c +++ b/sim/testsuite/common/bits-gen.c @@ -193,9 +193,7 @@ usage (int reason) int -main (argc, argv) - int argc; - char **argv; +main (int argc, char *argv[]) { int bitsize; int msb; @@ -224,14 +222,14 @@ main (argc, argv) ms = "MS"; else ms = "LS"; - + if (strcmp (argv [3], "big") == 0) big_endian = 1; else if (strcmp (argv [3], "little") == 0) big_endian = 0; else usage (4); - + printf ("#define WITH_TARGET_WORD_BITSIZE %d\n", bitsize); printf ("#define WITH_TARGET_WORD_MSB %d\n", msb); printf ("#define WITH_HOST_WORD_BITSIZE %d\n", sizeof (int) * 8); |