aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-08-04 09:39:46 +0000
committerAlan Modra <amodra@gmail.com>2003-08-04 09:39:46 +0000
commit268b6b39310b33c8791ea43e95e81e0bd12d7c8d (patch)
tree868d6cf5ea831cb3ca1ffea40336f9e0c706c817 /bfd/elf.c
parent2a36a1175e1fec4bd57a97bc5de0bea89b397b10 (diff)
downloadgdb-268b6b39310b33c8791ea43e95e81e0bd12d7c8d.zip
gdb-268b6b39310b33c8791ea43e95e81e0bd12d7c8d.tar.gz
gdb-268b6b39310b33c8791ea43e95e81e0bd12d7c8d.tar.bz2
* elfcode.h: Convert to C90, remove unneeded casts and prototypes.
* elfcore.h: Likewise. * elflink.c: Likewise. * elflink.h: Likewise. * elf.c (sym_is_global): Remove INLINE. (align_file_position): Replace INLINE with inline. * elfcode.h (elf_swap_dyn_in, elf_swap_dyn_out): Remove INLINE. (elf_file_p): Replace INLINE with inline.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index f97d507d..33848a2 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -2868,7 +2868,7 @@ assign_section_numbers (bfd *abfd)
/* Map symbol from it's internal number to the external number, moving
all local symbols to be at the head of the list. */
-static INLINE int
+static int
sym_is_global (bfd *abfd, asymbol *sym)
{
/* If the backend has a special mapping, use it. */
@@ -3028,7 +3028,7 @@ elf_map_symbols (bfd *abfd)
/* Align to the maximum file alignment that could be required for any
ELF data structure. */
-static INLINE file_ptr
+static inline file_ptr
align_file_position (file_ptr off, int align)
{
return (off + align - 1) & ~(align - 1);