diff options
author | Chris Demetriou <cgd@google.com> | 2003-02-23 19:52:49 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2003-02-23 19:52:49 +0000 |
commit | 4a9a3c54b799bbc85b284d6072ceef7229022cdf (patch) | |
tree | 467f57a11f9ae0b3722b2a719cbd5a61074b324e | |
parent | 3008c20213105500c84d0638d6bac0fc24e7e076 (diff) | |
download | binutils-4a9a3c54b799bbc85b284d6072ceef7229022cdf.tar.gz binutils-4a9a3c54b799bbc85b284d6072ceef7229022cdf.tar.bz2 binutils-4a9a3c54b799bbc85b284d6072ceef7229022cdf.zip |
2003-02-23 Elias Athanasopoulos <elathan@phys.uoa.gr>
* mips-dis.c (print_mips_disassembler_options): Make 'i' unsigned,
use ARRAY_SIZE in loops.
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/mips-dis.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 63e838e9d8d..de54da64f71 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2003-02-23 Elias Athanasopoulos <elathan@phys.uoa.gr> + + * mips-dis.c (print_mips_disassembler_options): Make 'i' unsigned, + use ARRAY_SIZE in loops. + 2003-02-12 Dave Brolley <brolley@redhat.com> * fr30-desc.c: Regenerate. diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c index 176ffeb4694..1ed436a0d0a 100644 --- a/opcodes/mips-dis.c +++ b/opcodes/mips-dis.c @@ -1758,7 +1758,7 @@ void print_mips_disassembler_options (stream) FILE *stream; { - int i; + unsigned int i; fprintf (stream, _("\n\ The following MIPS specific disassembler options are supported for use\n\ @@ -1793,14 +1793,14 @@ with the -M switch (multiple options should be separated by commas):\n")); fprintf (stream, _("\n\ For the options above, the following values are supported for \"ABI\":\n\ ")); - for (i = 0; mips_abi_choices[i].name != NULL; i++) + for (i = 0; i < ARRAY_SIZE (mips_abi_choices); i++) fprintf (stream, " %s", mips_abi_choices[i].name); fprintf (stream, _("\n")); fprintf (stream, _("\n\ For the options above, The following values are supported for \"ARCH\":\n\ ")); - for (i = 0; mips_arch_choices[i].name != NULL; i++) + for (i = 0; i < ARRAY_SIZE (mips_arch_choices); i++) if (*mips_arch_choices[i].name != '\0') fprintf (stream, " %s", mips_arch_choices[i].name); fprintf (stream, _("\n")); |