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.
|
|
|
|
|
|
|
|
--- elfutils/libebl/eblopenbackend.c-dist 2008-01-28 14:21:23.000000000 +0100
|
|
|
|
+++ elfutils/libebl/eblopenbackend.c 2008-01-28 14:21:39.000000000 +0100
|
2008-10-14 02:26:42 +02:00
|
|
|
@@ -253,10 +253,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;
|
2010-05-25 10:29:40 +02:00
|
|
|
--- elfutils/lib/dynamicsizehash.c-dist 2008-01-28 14:25:32.000000000 +0100
|
|
|
|
+++ elfutils/lib/dynamicsizehash.c 2008-01-28 14:25:52.000000000 +0100
|
2008-10-14 02:26:42 +02:00
|
|
|
@@ -65,10 +65,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
{
|
|
|
|
/* First hash function: simply take the modul but prevent zero. */
|
|
|
|
size_t idx = 1 + hval % htab->size;
|