forked from Imagelibrary/binutils-gdb
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user