libebl-prototype-fix.diff
authorAnas Nashif <anas.nashif@intel.com>
Thu, 8 Nov 2012 02:10:56 +0000 (18:10 -0800)
committerChanho Park <chanho61.park@samsung.com>
Wed, 26 Nov 2014 14:33:39 +0000 (23:33 +0900)
Update from K&R to ANSI prototype.   This fix should go upstream.

lib/dynamicsizehash.c
libebl/eblopenbackend.c

index 1fdff1b..63bf02b 100644 (file)
 
 
 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.  */
index bd94759..7d6523d 100644 (file)
@@ -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;