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.
This commit is contained in:
Mike Frysinger
2014-02-19 22:29:37 -05:00
parent f97a10f1dc
commit 1a8a700e3a
26 changed files with 209 additions and 266 deletions

View File

@@ -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);