From: Anas Nashif Date: Thu, 8 Nov 2012 02:10:56 +0000 (-0800) Subject: libebl-prototype-fix.diff X-Git-Tag: accepted/tizen/base/20151223.052249~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=303dee9095a0d509198e5c3fe1d52ebe0183f92d;p=platform%2Fupstream%2Felfutils.git libebl-prototype-fix.diff Update from K&R to ANSI prototype. This fix should go upstream. --- diff --git a/lib/dynamicsizehash.c b/lib/dynamicsizehash.c index 1fdff1b..63bf02b 100644 --- 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. */ diff --git a/libebl/eblopenbackend.c b/libebl/eblopenbackend.c index bd94759..7d6523d 100644 --- a/libebl/eblopenbackend.c +++ b/libebl/eblopenbackend.c @@ -252,10 +252,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;