diff options
author | Nick Clifton <nickc@redhat.com> | 2001-02-07 23:16:22 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-02-07 23:16:22 +0000 |
commit | 7340082dc8d4b1fcd14f6d18fc0086fdae31d556 (patch) | |
tree | 93c292ba0787e54e9ce8723f47602adb16e17c30 /binutils/objdump.c | |
parent | 4d6ed7c8cea13961e6c4bd3425dd679eb44ebc34 (diff) | |
download | gdb-7340082dc8d4b1fcd14f6d18fc0086fdae31d556.zip gdb-7340082dc8d4b1fcd14f6d18fc0086fdae31d556.tar.gz gdb-7340082dc8d4b1fcd14f6d18fc0086fdae31d556.tar.bz2 |
Change bfd_target_vector from an array to a pointer
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r-- | binutils/objdump.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c index a665831..1f66ab7 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -2644,14 +2644,14 @@ endian_string (endian) static void display_target_list () { - extern bfd_target *bfd_target_vector[]; + extern const bfd_target *const *bfd_target_vector; char *dummy_name; int t; dummy_name = make_temp_file (NULL); for (t = 0; bfd_target_vector[t]; t++) { - bfd_target *p = bfd_target_vector[t]; + const bfd_target *p = bfd_target_vector[t]; bfd *abfd = bfd_openw (dummy_name, p->name); int a; @@ -2692,7 +2692,7 @@ display_info_table (first, last) int first; int last; { - extern bfd_target *bfd_target_vector[]; + extern const bfd_target *const *bfd_target_vector; int t, a; char *dummy_name; @@ -2710,7 +2710,7 @@ display_info_table (first, last) bfd_printable_arch_mach (a, 0)); for (t = first; t < last && bfd_target_vector[t]; t++) { - bfd_target *p = bfd_target_vector[t]; + const bfd_target *p = bfd_target_vector[t]; boolean ok = true; bfd *abfd = bfd_openw (dummy_name, p->name); @@ -2761,7 +2761,7 @@ static void display_target_tables () { int t, columns; - extern bfd_target *bfd_target_vector[]; + extern const bfd_target *const *bfd_target_vector; char *colum; columns = 0; |