File libebl-prototype-fix.diff of Package elfutils.13244

From: unknown
Upstream: no
References: none

Update from K&R to ANSI prototype.   This fix should go upstream.

---
 lib/dynamicsizehash.c   |    5 +----
 libebl/eblopenbackend.c |    5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)

--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -250,10 +250,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;
--- a/lib/dynamicsizehash.c
+++ b/lib/dynamicsizehash.c
@@ -44,10 +44,7 @@
 
 
 static size_t
-lookup (htab, hval, val)
-     NAME *htab;
-     HASHTYPE hval;
-     TYPE val __attribute__ ((unused));
+lookup (NAME *htab, HASHTYPE hval, TYPE val __attribute__((unused)))
 {
   /* First hash function: simply take the modul but prevent zero.  Small values
      can skip the division, which helps performance when this is common.  */
openSUSE Build Service is sponsored by