Convert to C90
[deliverable/binutils-gdb.git] / ld / emultempl / m68kelf.em
index 64d4aa85fc1889636709e675a7116b594740b56e..31db20bcafee9a624cfbafd6e736b7778a011686 100644 (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));
This page took 0.024087 seconds and 4 git commands to generate.