diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-20 21:55:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-20 21:55:45 +0000 |
commit | 2f3508ad05b193386e250bee0cb8b30d23928af1 (patch) | |
tree | ada9ff855c0d95dec0fddcb8a124df083871b505 /bfd/tekhex.c | |
parent | 1cf8bd3f31a43932cad1d21cac4acf5b98983e56 (diff) | |
download | gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.zip gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.tar.gz gdb-2f3508ad05b193386e250bee0cb8b30d23928af1.tar.bz2 |
* Many files: change all bfd_target vectors to be const. Change
all uses of bfd_target * to be const bfd_target *. Change
bfd_target_vector and bfd_default_vector arrays to be const
bfd_target * const *.
Diffstat (limited to 'bfd/tekhex.c')
-rw-r--r-- | bfd/tekhex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bfd/tekhex.c b/bfd/tekhex.c index 4d8e19d..12ab48f 100644 --- a/bfd/tekhex.c +++ b/bfd/tekhex.c @@ -586,7 +586,7 @@ tekhex_mkobject (abfd) Return true if the file looks like it's in TekHex format. Just look for a percent sign and some hex digits */ -static bfd_target * +static const bfd_target * tekhex_object_p (abfd) bfd *abfd; { @@ -600,7 +600,7 @@ tekhex_object_p (abfd) return NULL; if (b[0] != '%' || !ISHEX (b[1]) || !ISHEX (b[2]) || !ISHEX (b[3])) - return (bfd_target *) NULL; + return (const bfd_target *) NULL; tekhex_mkobject (abfd); @@ -1015,7 +1015,7 @@ tekhex_print_symbol (ignore_abfd, filep, symbol, how) #define tekhex_bfd_link_add_symbols _bfd_generic_link_add_symbols #define tekhex_bfd_final_link _bfd_generic_final_link -bfd_target tekhex_vec = +const bfd_target tekhex_vec = { "tekhex", /* name */ bfd_target_tekhex_flavour, @@ -1040,8 +1040,8 @@ bfd_target tekhex_vec = { _bfd_dummy_target, tekhex_object_p, /* bfd_check_format */ - (struct bfd_target * (*)()) bfd_nullvoidptr, - (struct bfd_target * (*)()) bfd_nullvoidptr, + _bfd_dummy_target, + _bfd_dummy_target, }, { bfd_false, |