summaryrefslogtreecommitdiff
path: root/libebl
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2015-09-22 22:27:01 +0200
committerMark Wielaard <mjw@redhat.com>2015-09-23 15:50:55 +0200
commit1ccdfb683ad6c7e59793136c3a657ddf131cafd1 (patch)
treed5d24ce4ca0beec37e1ee2fe1f8a36af0e218e28 /libebl
parente260d79d73be07aee2860c5a5baf4f12c230ad6b (diff)
downloadelfutils-1ccdfb683ad6c7e59793136c3a657ddf131cafd1.tar.gz
Remove old-style function definitions.
We already require -std=gnu99 and old-style function definitions might hide some compiler warnings. Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'libebl')
-rw-r--r--libebl/ChangeLog4
-rw-r--r--libebl/ebl_check_special_section.c7
-rw-r--r--libebl/ebl_check_special_symbol.c8
-rw-r--r--libebl/ebl_syscall_abi.c7
-rw-r--r--libebl/eblabicfi.c4
-rw-r--r--libebl/eblauxvinfo.c7
-rw-r--r--libebl/eblbackendname.c3
-rw-r--r--libebl/eblbsspltp.c3
-rw-r--r--libebl/eblcheckobjattr.c10
-rw-r--r--libebl/eblcopyrelocp.c4
-rw-r--r--libebl/eblcorenote.c14
-rw-r--r--libebl/eblcorenotetypename.c6
-rw-r--r--libebl/ebldebugscnp.c4
-rw-r--r--libebl/ebldynamictagcheck.c4
-rw-r--r--libebl/ebldynamictagname.c6
-rw-r--r--libebl/eblelfclass.c3
-rw-r--r--libebl/eblelfdata.c3
-rw-r--r--libebl/eblelfmachine.c3
-rw-r--r--libebl/eblgotpcreloccheck.c4
-rw-r--r--libebl/eblmachineflagcheck.c4
-rw-r--r--libebl/eblmachineflagname.c6
-rw-r--r--libebl/eblmachinesectionflagcheck.c4
-rw-r--r--libebl/eblnonerelocp.c4
-rw-r--r--libebl/eblobjecttypename.c6
-rw-r--r--libebl/eblobjnote.c8
-rw-r--r--libebl/eblobjnotetypename.c8
-rw-r--r--libebl/eblopenbackend.c8
-rw-r--r--libebl/eblosabiname.c6
-rw-r--r--libebl/eblreginfo.c12
-rw-r--r--libebl/eblrelativerelocp.c4
-rw-r--r--libebl/eblrelocsimpletype.c4
-rw-r--r--libebl/eblreloctypecheck.c4
-rw-r--r--libebl/eblreloctypename.c6
-rw-r--r--libebl/eblrelocvaliduse.c4
-rw-r--r--libebl/eblretval.c6
-rw-r--r--libebl/eblsectionname.c10
-rw-r--r--libebl/eblsectiontypename.c6
-rw-r--r--libebl/eblsegmenttypename.c6
-rw-r--r--libebl/eblshflagscombine.c5
-rw-r--r--libebl/eblsymbolbindingname.c6
-rw-r--r--libebl/eblsymboltypename.c6
-rw-r--r--libebl/eblsysvhashentrysize.c3
42 files changed, 60 insertions, 180 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index aab08571..4ea6d498 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-22 Mark Wielaard <mjw@redhat.com>
+
+ * *.c: Remove old-style function definitions.
+
2015-09-09 Chih-Hung Hsieh <chh@google.com>
* ebldwarftoregno.c (ebl_dwarf_to_regno): Remove redundant NULL tests
diff --git a/libebl/ebl_check_special_section.c b/libebl/ebl_check_special_section.c
index aabe44e6..903b69d5 100644
--- a/libebl/ebl_check_special_section.c
+++ b/libebl/ebl_check_special_section.c
@@ -34,11 +34,8 @@
bool
-ebl_check_special_section (ebl, ndx, shdr, sname)
- Ebl *ebl;
- int ndx;
- const GElf_Shdr *shdr;
- const char *sname;
+ebl_check_special_section (Ebl *ebl, int ndx, const GElf_Shdr *shdr,
+ const char *sname)
{
return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
}
diff --git a/libebl/ebl_check_special_symbol.c b/libebl/ebl_check_special_symbol.c
index 8e702ba3..bdcb026c 100644
--- a/libebl/ebl_check_special_symbol.c
+++ b/libebl/ebl_check_special_symbol.c
@@ -35,12 +35,8 @@
bool
-ebl_check_special_symbol (ebl, ehdr, sym, name, destshdr)
- Ebl *ebl;
- GElf_Ehdr *ehdr;
- const GElf_Sym *sym;
- const char *name;
- const GElf_Shdr *destshdr;
+ebl_check_special_symbol (Ebl *ebl, GElf_Ehdr *ehdr, const GElf_Sym *sym,
+ const char *name, const GElf_Shdr *destshdr)
{
if (ebl == NULL)
return false;
diff --git a/libebl/ebl_syscall_abi.c b/libebl/ebl_syscall_abi.c
index de737037..a25369d2 100644
--- a/libebl/ebl_syscall_abi.c
+++ b/libebl/ebl_syscall_abi.c
@@ -34,12 +34,7 @@
int
-ebl_syscall_abi (ebl, sp, pc, callno, args)
- Ebl *ebl;
- int *sp;
- int *pc;
- int *callno;
- int args[6];
+ebl_syscall_abi (Ebl *ebl, int *sp, int *pc, int *callno, int *args)
{
return ebl != NULL ? ebl->syscall_abi (ebl, sp, pc, callno, args) : -1;
}
diff --git a/libebl/eblabicfi.c b/libebl/eblabicfi.c
index 20a29ea0..6b0e18e4 100644
--- a/libebl/eblabicfi.c
+++ b/libebl/eblabicfi.c
@@ -34,9 +34,7 @@
int
-ebl_abi_cfi (ebl, abi_info)
- Ebl *ebl;
- Dwarf_CIE *abi_info;
+ebl_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
{
return ebl == NULL ? -1 : ebl->abi_cfi (ebl, abi_info);
}
diff --git a/libebl/eblauxvinfo.c b/libebl/eblauxvinfo.c
index 5c310b29..ce1141b8 100644
--- a/libebl/eblauxvinfo.c
+++ b/libebl/eblauxvinfo.c
@@ -85,11 +85,8 @@ static const struct
#define nauxv_types (sizeof auxv_types / sizeof auxv_types[0])
int
-ebl_auxv_info (ebl, a_type, name, format)
- Ebl *ebl;
- GElf_Xword a_type;
- const char **name;
- const char **format;
+ebl_auxv_info (Ebl *ebl, GElf_Xword a_type, const char **name,
+ const char **format)
{
int result = ebl->auxv_info (a_type, name, format);
if (result == 0 && a_type < nauxv_types && auxv_types[a_type].name != NULL)
diff --git a/libebl/eblbackendname.c b/libebl/eblbackendname.c
index 92e576ed..a2b2df69 100644
--- a/libebl/eblbackendname.c
+++ b/libebl/eblbackendname.c
@@ -36,8 +36,7 @@
const char *
-ebl_backend_name (ebl)
- Ebl *ebl;
+ebl_backend_name (Ebl *ebl)
{
return ebl != NULL ? ebl->emulation : gettext ("No backend");
}
diff --git a/libebl/eblbsspltp.c b/libebl/eblbsspltp.c
index 95a5d8af..24c4a08b 100644
--- a/libebl/eblbsspltp.c
+++ b/libebl/eblbsspltp.c
@@ -35,8 +35,7 @@
bool
-ebl_bss_plt_p (ebl)
- Ebl *ebl;
+ebl_bss_plt_p (Ebl *ebl)
{
return ebl == NULL ? false : ebl->bss_plt_p (ebl->elf);
}
diff --git a/libebl/eblcheckobjattr.c b/libebl/eblcheckobjattr.c
index b0481d2f..b590a039 100644
--- a/libebl/eblcheckobjattr.c
+++ b/libebl/eblcheckobjattr.c
@@ -35,13 +35,9 @@
bool
-ebl_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name)
- Ebl *ebl;
- const char *vendor;
- int tag;
- uint64_t value;
- const char **tag_name;
- const char **value_name;
+ebl_check_object_attribute (Ebl *ebl, const char *vendor, int tag,
+ uint64_t value, const char **tag_name,
+ const char **value_name)
{
if (ebl->check_object_attribute (ebl, vendor, tag, value,
tag_name, value_name))
diff --git a/libebl/eblcopyrelocp.c b/libebl/eblcopyrelocp.c
index 702f8c7c..0458c4f7 100644
--- a/libebl/eblcopyrelocp.c
+++ b/libebl/eblcopyrelocp.c
@@ -35,9 +35,7 @@
bool
-ebl_copy_reloc_p (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_copy_reloc_p (Ebl *ebl, int reloc)
{
return ebl->copy_reloc_p (reloc);
}
diff --git a/libebl/eblcorenote.c b/libebl/eblcorenote.c
index 2a79278d..783f9815 100644
--- a/libebl/eblcorenote.c
+++ b/libebl/eblcorenote.c
@@ -40,16 +40,10 @@
int
-ebl_core_note (ebl, nhdr, name,
- regs_offset, nregloc, reglocs, nitems, items)
- Ebl *ebl;
- const GElf_Nhdr *nhdr;
- const char *name;
- GElf_Word *regs_offset;
- size_t *nregloc;
- const Ebl_Register_Location **reglocs;
- size_t *nitems;
- const Ebl_Core_Item **items;
+ebl_core_note (Ebl *ebl, const GElf_Nhdr *nhdr, const char *name,
+ GElf_Word *regs_offset, size_t *nregloc,
+ const Ebl_Register_Location **reglocs, size_t *nitems,
+ const Ebl_Core_Item **items)
{
int result = ebl->core_note (nhdr, name,
regs_offset, nregloc, reglocs, nitems, items);
diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c
index b6db6cd8..826f9a1b 100644
--- a/libebl/eblcorenotetypename.c
+++ b/libebl/eblcorenotetypename.c
@@ -36,11 +36,7 @@
#include <libeblP.h>
const char *
-ebl_core_note_type_name (ebl, type, buf, len)
- Ebl *ebl;
- uint32_t type;
- char *buf;
- size_t len;
+ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len)
{
const char *res = ebl->core_note_type_name (type, buf, len);
diff --git a/libebl/ebldebugscnp.c b/libebl/ebldebugscnp.c
index 01a56754..2964fdb6 100644
--- a/libebl/ebldebugscnp.c
+++ b/libebl/ebldebugscnp.c
@@ -36,9 +36,7 @@
bool
-ebl_debugscn_p (ebl, name)
- Ebl *ebl;
- const char *name;
+ebl_debugscn_p (Ebl *ebl, const char *name)
{
return name != NULL && ebl->debugscn_p (name);
}
diff --git a/libebl/ebldynamictagcheck.c b/libebl/ebldynamictagcheck.c
index 17acee04..c2311ccd 100644
--- a/libebl/ebldynamictagcheck.c
+++ b/libebl/ebldynamictagcheck.c
@@ -36,9 +36,7 @@
bool
-ebl_dynamic_tag_check (ebl, tag)
- Ebl *ebl;
- int64_t tag;
+ebl_dynamic_tag_check (Ebl *ebl, int64_t tag)
{
bool res = ebl != NULL ? ebl->dynamic_tag_check (tag) : false;
diff --git a/libebl/ebldynamictagname.c b/libebl/ebldynamictagname.c
index 6b09ee64..3aaccd0d 100644
--- a/libebl/ebldynamictagname.c
+++ b/libebl/ebldynamictagname.c
@@ -37,11 +37,7 @@
const char *
-ebl_dynamic_tag_name (ebl, tag, buf, len)
- Ebl *ebl;
- int64_t tag;
- char *buf;
- size_t len;
+ebl_dynamic_tag_name (Ebl *ebl, int64_t tag, char *buf, size_t len)
{
const char *res = ebl != NULL ? ebl->dynamic_tag_name (tag, buf, len) : NULL;
diff --git a/libebl/eblelfclass.c b/libebl/eblelfclass.c
index 62d12836..2ffef304 100644
--- a/libebl/eblelfclass.c
+++ b/libebl/eblelfclass.c
@@ -35,8 +35,7 @@
int
-ebl_get_elfclass (ebl)
- Ebl *ebl;
+ebl_get_elfclass (Ebl *ebl)
{
return ebl->class;
}
diff --git a/libebl/eblelfdata.c b/libebl/eblelfdata.c
index b09dbb5c..072924b6 100644
--- a/libebl/eblelfdata.c
+++ b/libebl/eblelfdata.c
@@ -35,8 +35,7 @@
int
-ebl_get_elfdata (ebl)
- Ebl *ebl;
+ebl_get_elfdata (Ebl *ebl)
{
return ebl->data;
}
diff --git a/libebl/eblelfmachine.c b/libebl/eblelfmachine.c
index cd961e7b..c2c86275 100644
--- a/libebl/eblelfmachine.c
+++ b/libebl/eblelfmachine.c
@@ -35,8 +35,7 @@
int
-ebl_get_elfmachine (ebl)
- Ebl *ebl;
+ebl_get_elfmachine (Ebl *ebl)
{
return ebl->machine;
}
diff --git a/libebl/eblgotpcreloccheck.c b/libebl/eblgotpcreloccheck.c
index 55625de3..7c9c079c 100644
--- a/libebl/eblgotpcreloccheck.c
+++ b/libebl/eblgotpcreloccheck.c
@@ -36,9 +36,7 @@
bool
-ebl_gotpc_reloc_check (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_gotpc_reloc_check (Ebl *ebl, int reloc)
{
return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
}
diff --git a/libebl/eblmachineflagcheck.c b/libebl/eblmachineflagcheck.c
index d6d79318..e98b600e 100644
--- a/libebl/eblmachineflagcheck.c
+++ b/libebl/eblmachineflagcheck.c
@@ -35,9 +35,7 @@
bool
-ebl_machine_flag_check (ebl, flags)
- Ebl *ebl;
- Elf64_Word flags;
+ebl_machine_flag_check (Ebl *ebl, Elf64_Word flags)
{
return ebl != NULL ? ebl->machine_flag_check (flags) : (flags == 0);
}
diff --git a/libebl/eblmachineflagname.c b/libebl/eblmachineflagname.c
index e392f5a4..6079a613 100644
--- a/libebl/eblmachineflagname.c
+++ b/libebl/eblmachineflagname.c
@@ -37,11 +37,7 @@
const char *
-ebl_machine_flag_name (ebl, flags, buf, len)
- Ebl *ebl;
- Elf64_Word flags;
- char *buf;
- size_t len;
+ebl_machine_flag_name (Ebl *ebl, Elf64_Word flags, char *buf, size_t len)
{
const char *res;
diff --git a/libebl/eblmachinesectionflagcheck.c b/libebl/eblmachinesectionflagcheck.c
index 671eb8c5..a73b230d 100644
--- a/libebl/eblmachinesectionflagcheck.c
+++ b/libebl/eblmachinesectionflagcheck.c
@@ -34,9 +34,7 @@
bool
-ebl_machine_section_flag_check (ebl, flags)
- Ebl *ebl;
- GElf_Xword flags;
+ebl_machine_section_flag_check (Ebl *ebl, GElf_Xword flags)
{
return ebl != NULL ? ebl->machine_section_flag_check (flags) : (flags == 0);
}
diff --git a/libebl/eblnonerelocp.c b/libebl/eblnonerelocp.c
index 07c6b0e3..e51a3b00 100644
--- a/libebl/eblnonerelocp.c
+++ b/libebl/eblnonerelocp.c
@@ -35,9 +35,7 @@
bool
-ebl_none_reloc_p (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_none_reloc_p (Ebl *ebl, int reloc)
{
return ebl->none_reloc_p (reloc);
}
diff --git a/libebl/eblobjecttypename.c b/libebl/eblobjecttypename.c
index 1a2c8e87..b0fd3724 100644
--- a/libebl/eblobjecttypename.c
+++ b/libebl/eblobjecttypename.c
@@ -36,11 +36,7 @@
const char *
-ebl_object_type_name (ebl, object, buf, len)
- Ebl *ebl;
- int object;
- char *buf;
- size_t len;
+ebl_object_type_name (Ebl *ebl, int object, char *buf, size_t len)
{
const char *res;
diff --git a/libebl/eblobjnote.c b/libebl/eblobjnote.c
index b9bf1c0b..fa1eb93a 100644
--- a/libebl/eblobjnote.c
+++ b/libebl/eblobjnote.c
@@ -39,12 +39,8 @@
void
-ebl_object_note (ebl, name, type, descsz, desc)
- Ebl *ebl;
- const char *name;
- uint32_t type;
- uint32_t descsz;
- const char *desc;
+ebl_object_note (Ebl *ebl, const char *name, uint32_t type,
+ uint32_t descsz, const char *desc)
{
if (! ebl->object_note (name, type, descsz, desc))
/* The machine specific function did not know this type. */
diff --git a/libebl/eblobjnotetypename.c b/libebl/eblobjnotetypename.c
index 8a70e61f..8e2e329b 100644
--- a/libebl/eblobjnotetypename.c
+++ b/libebl/eblobjnotetypename.c
@@ -38,12 +38,8 @@
const char *
-ebl_object_note_type_name (ebl, name, type, buf, len)
- Ebl *ebl;
- const char *name;
- uint32_t type;
- char *buf;
- size_t len;
+ebl_object_note_type_name (Ebl *ebl, const char *name, uint32_t type,
+ char *buf, size_t len)
{
const char *res = ebl->object_note_type_name (name, type, buf, len);
diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c
index 02b24d3f..b3014005 100644
--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -254,10 +254,7 @@ fill_defaults (Ebl *result)
/* Find an appropriate backend for the file associated with ELF. */
static Ebl *
-openbackend (elf, emulation, machine)
- Elf *elf;
- const char *emulation;
- GElf_Half machine;
+openbackend (Elf *elf, const char *emulation, GElf_Half machine)
{
Ebl *result;
size_t cnt;
@@ -397,8 +394,7 @@ openbackend (elf, emulation, machine)
/* Find an appropriate backend for the file associated with ELF. */
Ebl *
-ebl_openbackend (elf)
- Elf *elf;
+ebl_openbackend (Elf *elf)
{
GElf_Ehdr ehdr_mem;
GElf_Ehdr *ehdr;
diff --git a/libebl/eblosabiname.c b/libebl/eblosabiname.c
index 3ea6f562..b60f2af4 100644
--- a/libebl/eblosabiname.c
+++ b/libebl/eblosabiname.c
@@ -36,11 +36,7 @@
const char *
-ebl_osabi_name (ebl, osabi, buf, len)
- Ebl *ebl;
- int osabi;
- char *buf;
- size_t len;
+ebl_osabi_name (Ebl *ebl, int osabi, char *buf, size_t len)
{
const char *res = ebl != NULL ? ebl->osabi_name (osabi, buf, len) : NULL;
diff --git a/libebl/eblreginfo.c b/libebl/eblreginfo.c
index f213b4a2..acc48495 100644
--- a/libebl/eblreginfo.c
+++ b/libebl/eblreginfo.c
@@ -35,15 +35,9 @@
ssize_t
-ebl_register_info (ebl, regno, name, namelen, prefix, setname, bits, type)
- Ebl *ebl;
- int regno;
- char *name;
- size_t namelen;
- const char **prefix;
- const char **setname;
- int *bits;
- int *type;
+ebl_register_info (Ebl *ebl, int regno, char *name, size_t namelen,
+ const char **prefix, const char **setname,
+ int *bits, int *type)
{
return ebl == NULL ? -1 : ebl->register_info (ebl, regno, name, namelen,
prefix, setname, bits, type);
diff --git a/libebl/eblrelativerelocp.c b/libebl/eblrelativerelocp.c
index 297caec2..51f5dce2 100644
--- a/libebl/eblrelativerelocp.c
+++ b/libebl/eblrelativerelocp.c
@@ -35,9 +35,7 @@
bool
-ebl_relative_reloc_p (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_relative_reloc_p (Ebl *ebl, int reloc)
{
return ebl->relative_reloc_p (reloc);
}
diff --git a/libebl/eblrelocsimpletype.c b/libebl/eblrelocsimpletype.c
index 085fc931..9bd29285 100644
--- a/libebl/eblrelocsimpletype.c
+++ b/libebl/eblrelocsimpletype.c
@@ -34,9 +34,7 @@
Elf_Type
-ebl_reloc_simple_type (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_reloc_simple_type (Ebl *ebl, int reloc)
{
return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
}
diff --git a/libebl/eblreloctypecheck.c b/libebl/eblreloctypecheck.c
index e322ace0..80e67ef7 100644
--- a/libebl/eblreloctypecheck.c
+++ b/libebl/eblreloctypecheck.c
@@ -35,9 +35,7 @@
bool
-ebl_reloc_type_check (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_reloc_type_check (Ebl *ebl, int reloc)
{
return ebl != NULL ? ebl->reloc_type_check (reloc) : false;
}
diff --git a/libebl/eblreloctypename.c b/libebl/eblreloctypename.c
index fb391019..e53ec0c0 100644
--- a/libebl/eblreloctypename.c
+++ b/libebl/eblreloctypename.c
@@ -36,11 +36,7 @@
const char *
-ebl_reloc_type_name (ebl, reloc, buf, len)
- Ebl *ebl;
- int reloc;
- char *buf;
- size_t len;
+ebl_reloc_type_name (Ebl *ebl, int reloc, char *buf, size_t len)
{
const char *res;
diff --git a/libebl/eblrelocvaliduse.c b/libebl/eblrelocvaliduse.c
index 62c4ae7c..f0bed345 100644
--- a/libebl/eblrelocvaliduse.c
+++ b/libebl/eblrelocvaliduse.c
@@ -35,9 +35,7 @@
bool
-ebl_reloc_valid_use (ebl, reloc)
- Ebl *ebl;
- int reloc;
+ebl_reloc_valid_use (Ebl *ebl, int reloc)
{
return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
}
diff --git a/libebl/eblretval.c b/libebl/eblretval.c
index 056a5493..7c039824 100644
--- a/libebl/eblretval.c
+++ b/libebl/eblretval.c
@@ -35,10 +35,8 @@
int
-ebl_return_value_location (ebl, functypedie, locops)
- Ebl *ebl;
- Dwarf_Die *functypedie;
- const Dwarf_Op **locops;
+ebl_return_value_location (Ebl *ebl, Dwarf_Die *functypedie,
+ const Dwarf_Op **locops)
{
return ebl == NULL ? -1 : ebl->return_value_location (functypedie, locops);
}
diff --git a/libebl/eblsectionname.c b/libebl/eblsectionname.c
index 81c7add5..21c537ff 100644
--- a/libebl/eblsectionname.c
+++ b/libebl/eblsectionname.c
@@ -36,14 +36,8 @@
const char *
-ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum)
- Ebl *ebl;
- int section;
- int xsection;
- char *buf;
- size_t len;
- const char *scnnames[];
- size_t shnum;
+ebl_section_name (Ebl *ebl, int section, int xsection, char *buf, size_t len,
+ const char *scnnames[], size_t shnum)
{
const char *res = ebl != NULL ? ebl->section_name (section, xsection,
buf, len) : NULL;
diff --git a/libebl/eblsectiontypename.c b/libebl/eblsectiontypename.c
index 3a30cd63..5dc1ec6d 100644
--- a/libebl/eblsectiontypename.c
+++ b/libebl/eblsectiontypename.c
@@ -36,11 +36,7 @@
const char *
-ebl_section_type_name (ebl, section, buf, len)
- Ebl *ebl;
- int section;
- char *buf;
- size_t len;
+ebl_section_type_name (Ebl *ebl, int section, char *buf, size_t len)
{
const char *res = ebl->section_type_name (section, buf, len);
diff --git a/libebl/eblsegmenttypename.c b/libebl/eblsegmenttypename.c
index 3cad66e1..14eda76e 100644
--- a/libebl/eblsegmenttypename.c
+++ b/libebl/eblsegmenttypename.c
@@ -36,11 +36,7 @@
const char *
-ebl_segment_type_name (ebl, segment, buf, len)
- Ebl *ebl;
- int segment;
- char *buf;
- size_t len;
+ebl_segment_type_name (Ebl *ebl, int segment, char *buf, size_t len)
{
const char *res;
diff --git a/libebl/eblshflagscombine.c b/libebl/eblshflagscombine.c
index 87625f87..4deaaaac 100644
--- a/libebl/eblshflagscombine.c
+++ b/libebl/eblshflagscombine.c
@@ -35,10 +35,7 @@
GElf_Word
-ebl_sh_flags_combine (ebl, flags1, flags2)
- Ebl *ebl;
- GElf_Word flags1;
- GElf_Word flags2;
+ebl_sh_flags_combine (Ebl *ebl, GElf_Word flags1, GElf_Word flags2)
{
return ebl->sh_flags_combine (flags1, flags2);
}
diff --git a/libebl/eblsymbolbindingname.c b/libebl/eblsymbolbindingname.c
index fd5bfda5..97974253 100644
--- a/libebl/eblsymbolbindingname.c
+++ b/libebl/eblsymbolbindingname.c
@@ -36,11 +36,7 @@
const char *
-ebl_symbol_binding_name (ebl, binding, buf, len)
- Ebl *ebl;
- int binding;
- char *buf;
- size_t len;
+ebl_symbol_binding_name (Ebl *ebl, int binding, char *buf, size_t len)
{
const char *res;
diff --git a/libebl/eblsymboltypename.c b/libebl/eblsymboltypename.c
index 4e653d26..09fa8748 100644
--- a/libebl/eblsymboltypename.c
+++ b/libebl/eblsymboltypename.c
@@ -36,11 +36,7 @@
const char *
-ebl_symbol_type_name (ebl, symbol, buf, len)
- Ebl *ebl;
- int symbol;
- char *buf;
- size_t len;
+ebl_symbol_type_name (Ebl *ebl, int symbol, char *buf, size_t len)
{
const char *res;
diff --git a/libebl/eblsysvhashentrysize.c b/libebl/eblsysvhashentrysize.c
index f966646a..20494313 100644
--- a/libebl/eblsysvhashentrysize.c
+++ b/libebl/eblsysvhashentrysize.c
@@ -35,8 +35,7 @@
int
-ebl_sysvhash_entrysize (ebl)
- Ebl *ebl;
+ebl_sysvhash_entrysize (Ebl *ebl)
{
return ebl->sysvhash_entrysize;
}