SHA256
1
0
forked from pool/elfutils
elfutils/libebl-prototype-fix.diff
Tony Jones b2054c2334 Accepting request 47099 from home:jones_tony:branches:Base:System
Copy from home:jones_tony:branches:Base:System/elfutils via accept of submit request 47099 revision 2.
Request was accepted with message:

OBS-URL: https://build.opensuse.org/request/show/47099
OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=16
2010-09-03 22:52:25 +00:00

35 lines
1.1 KiB
Diff

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
@@ -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;
--- 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
@@ -65,10 +65,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. */
size_t idx = 1 + hval % htab->size;