Convert to C90

This commit is contained in:
Alan Modra
2003-06-28 05:28:54 +00:00
parent b9ae04920a
commit 1579bae1cd
35 changed files with 1501 additions and 2223 deletions

View File

@ -99,7 +99,7 @@ gld${EMULATION_NAME}_after_open (void)
/* Double check that all other data sections are empty, as is
required for embedded PIC code. */
bfd_map_over_sections (abfd, check_sections, (PTR) datasec);
bfd_map_over_sections (abfd, check_sections, datasec);
}
}

View File

@ -93,7 +93,7 @@ m68k_elf_after_open (void)
/* Double check that all other data sections are empty, as is
required for embedded PIC code. */
bfd_map_over_sections (abfd, check_sections, (PTR) datasec);
bfd_map_over_sections (abfd, check_sections, datasec);
}
}
#endif /* SUPPORT_EMBEDDED_RELOCS */
@ -104,10 +104,10 @@ m68k_elf_after_open (void)
relocs. This is called via bfd_map_over_sections. */
static void
check_sections (bfd *abfd, asection *sec, PTR datasec)
check_sections (bfd *abfd, asection *sec, void *datasec)
{
if ((bfd_get_section_flags (abfd, sec) & SEC_DATA)
&& sec != (asection *) datasec
&& sec != datasec
&& sec->reloc_count != 0)
einfo ("%B%X: section %s has relocs; can not use --embedded-relocs\n",
abfd, bfd_get_section_name (abfd, sec));

View File

@ -77,8 +77,6 @@ gld${EMULATION_NAME}_handle_option (int optc)
if ((*optarg == '0' || *optarg == '1' || *optarg == '2')
&& optarg[1] == '\0')
{
extern void lang_add_output_format
PARAMS ((const char *, const char *, const char *, int));
static char buf[] = "coffX-${OUTPUT_FORMAT_TEMPLATE}";
coff_version = *optarg - '0';
buf[4] = *optarg;