diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-03-13 22:27:22 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2006-03-13 22:27:22 +0000 |
commit | 91610c0c673178b9b12296d1f1e1e15f80f6ac2b (patch) | |
tree | 23ae2359f2eb90ac187a203d44c148d6aee266f0 /binutils/bucomm.c | |
parent | 80ca4e2ca22274e88acc03a6703c62c6ebda5ac2 (diff) | |
download | gdb-91610c0c673178b9b12296d1f1e1e15f80f6ac2b.zip gdb-91610c0c673178b9b12296d1f1e1e15f80f6ac2b.tar.gz gdb-91610c0c673178b9b12296d1f1e1e15f80f6ac2b.tar.bz2 |
* bucomm.c (display_target_list): Make local variable `a' to be of
type enum bfd_architecture. Thus no need to cast enums to int.
(display_info_table): Likewise.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index a2caa2f..03a4d28 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -189,7 +189,7 @@ display_target_list (void) { const bfd_target *p = bfd_target_vector[t]; bfd *abfd = bfd_openw (dummy_name, p->name); - int a; + enum bfd_architecture a; printf ("%s\n (header %s, data %s)\n", p->name, endian_string (p->header_byteorder), @@ -213,7 +213,7 @@ display_target_list (void) continue; } - for (a = (int) bfd_arch_obscure + 1; a < (int) bfd_arch_last; a++) + for (a = bfd_arch_obscure + 1; a < bfd_arch_last; a++) if (bfd_set_arch_mach (abfd, (enum bfd_architecture) a, 0)) printf (" %s\n", bfd_printable_arch_mach ((enum bfd_architecture) a, 0)); @@ -233,9 +233,9 @@ static int display_info_table (int first, int last) { int t; - int a; int ret = 1; char *dummy_name; + enum bfd_architecture a; /* Print heading of target names. */ printf ("\n%*s", (int) LONGEST_ARCH, " "); @@ -244,7 +244,7 @@ display_info_table (int first, int last) putchar ('\n'); dummy_name = make_temp_file (NULL); - for (a = (int) bfd_arch_obscure + 1; a < (int) bfd_arch_last; a++) + for (a = bfd_arch_obscure + 1; a < bfd_arch_last; a++) if (strcmp (bfd_printable_arch_mach (a, 0), "UNKNOWN!") != 0) { printf ("%*s ", (int) LONGEST_ARCH - 1, |