2010-05-25 10:29:40 +02:00
|
|
|
From: unknown
|
|
|
|
Upstream: no
|
|
|
|
References: none
|
|
|
|
|
|
|
|
Update from K&R to ANSI prototype. This fix should go upstream.
|
|
|
|
|
2014-01-29 20:02:33 +01:00
|
|
|
---
|
|
|
|
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)
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
/* 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;
|
2014-01-29 20:02:33 +01:00
|
|
|
--- a/lib/dynamicsizehash.c
|
|
|
|
+++ b/lib/dynamicsizehash.c
|
2012-11-29 13:05:16 +01:00
|
|
|
@@ -44,10 +44,7 @@
|
2008-10-14 02:26:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
static size_t
|
|
|
|
-lookup (htab, hval, val)
|
|
|
|
- NAME *htab;
|
2010-09-04 00:52:25 +02:00
|
|
|
- HASHTYPE hval;
|
2008-10-14 02:26:42 +02:00
|
|
|
- TYPE val __attribute__ ((unused));
|
2010-09-04 00:52:25 +02:00
|
|
|
+lookup (NAME *htab, HASHTYPE hval, TYPE val __attribute__((unused)))
|
2008-10-14 02:26:42 +02:00
|
|
|
{
|
2014-01-29 20:02:33 +01:00
|
|
|
/* First hash function: simply take the modul but prevent zero. Small values
|
|
|
|
can skip the division, which helps performance when this is common. */
|