aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-12-31 21:51:05 +0000
committerIan Lance Taylor <ian@airs.com>1993-12-31 21:51:05 +0000
commit728472f17007c03cb88525ffe4042c4370b26e78 (patch)
tree140bc3692c15364d956dcebd991cb93fca387d8c /bfd/libbfd.c
parent1d166443d458b03f3fc1c1823456b91b930f5507 (diff)
downloadbinutils-728472f17007c03cb88525ffe4042c4370b26e78.zip
binutils-728472f17007c03cb88525ffe4042c4370b26e78.tar.gz
binutils-728472f17007c03cb88525ffe4042c4370b26e78.tar.bz2
Minor cleanups suggested by CodeCenter.
* aoutx.h, coffgen.c, ecoff.c, ecofflink.c, elf.c, libbfd.c, linker.c, reloc.c, section.c, srec.c: Added /*ARGSUSED*/ as appropriate. * aoutx.h (struct external_exec): Removed unnecessary declaration. (NAME(aout,some_aout_object_p)): Set some tdata pointers to NULL. (adjust_z_magic): Removed useless variable data_vma. (stringtab_init): Initialize hash_zero. (add_to_stringtab): Removed unused fourth argument. (NAME(aout,swap_std_reloc_out)): Removed useless variable r_addend. (aout_link_input_section): Added some casts. * archive.c (get_extended_arelt_filename, do_slurp_coff_armap, bfd_ar_hdr_from_filesystem, bsd_write_armap, coff_write_armap): Minor code rewriting to make it more C like. (do_slurp_bsd_armap): Added some casts. * ecoff.c (ecoff_write_object_contents): Removed useless variable scn_base. (ecoff_write_armap): Added some casts. Use "" rather than "\0". * ecofflink.c (bfd_ecoff_write_debug): Added a cast. * libaout.h (struct internal_exec): Removed unnecessary declaration. * linker.c (_bfd_generic_indirect_link_order): Added a cast. * opncls.c (new_bfd): Removed a cast. * reloc.c (bfd_generic_get_relocated_section_contents): Added some casts. * srec.c (internal_srec_write_object_contents): Removed useless variable bytes_written.
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r--bfd/libbfd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index 10e9a9d..8e20e3e 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -32,6 +32,7 @@ DESCRIPTION
completeness.
*/
+/*ARGSUSED*/
boolean
DEFUN(_bfd_dummy_new_section_hook,(ignore, ignore_newsect),
bfd *ignore AND
@@ -40,6 +41,7 @@ DEFUN(_bfd_dummy_new_section_hook,(ignore, ignore_newsect),
return true;
}
+/*ARGSUSED*/
boolean
DEFUN(bfd_false ,(ignore),
bfd *ignore)
@@ -47,6 +49,7 @@ DEFUN(bfd_false ,(ignore),
return false;
}
+/*ARGSUSED*/
boolean
DEFUN(bfd_true,(ignore),
bfd *ignore)
@@ -54,6 +57,7 @@ DEFUN(bfd_true,(ignore),
return true;
}
+/*ARGSUSED*/
PTR
DEFUN(bfd_nullvoidptr,(ignore),
bfd *ignore)
@@ -61,6 +65,7 @@ DEFUN(bfd_nullvoidptr,(ignore),
return (PTR)NULL;
}
+/*ARGSUSED*/
int
DEFUN(bfd_0,(ignore),
bfd *ignore)
@@ -68,6 +73,7 @@ DEFUN(bfd_0,(ignore),
return 0;
}
+/*ARGSUSED*/
unsigned int
DEFUN(bfd_0u,(ignore),
bfd *ignore)
@@ -75,12 +81,14 @@ DEFUN(bfd_0u,(ignore),
return 0;
}
+/*ARGSUSED*/
void
DEFUN(bfd_void,(ignore),
bfd *ignore)
{
}
+/*ARGSUSED*/
boolean
DEFUN(_bfd_dummy_core_file_matches_executable_p,(ignore_core_bfd, ignore_exec_bfd),
bfd *ignore_core_bfd AND
@@ -92,6 +100,7 @@ DEFUN(_bfd_dummy_core_file_matches_executable_p,(ignore_core_bfd, ignore_exec_bf
/* of course you can't initialize a function to be the same as another, grr */
+/*ARGSUSED*/
char *
DEFUN(_bfd_dummy_core_file_failing_command,(ignore_abfd),
bfd *ignore_abfd)
@@ -99,6 +108,7 @@ DEFUN(_bfd_dummy_core_file_failing_command,(ignore_abfd),
return (char *)NULL;
}
+/*ARGSUSED*/
int
DEFUN(_bfd_dummy_core_file_failing_signal,(ignore_abfd),
bfd *ignore_abfd)
@@ -106,6 +116,7 @@ DEFUN(_bfd_dummy_core_file_failing_signal,(ignore_abfd),
return 0;
}
+/*ARGSUSED*/
bfd_target *
DEFUN(_bfd_dummy_target,(ignore_abfd),
bfd *ignore_abfd)