diff options
author | Chih-Hung Hsieh <chh@google.com> | 2015-09-04 12:04:11 -0700 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-09-07 22:04:21 +0200 |
commit | aa1c2ca808a267a5a3c372de5461c1f67f9a8869 (patch) | |
tree | 099c81057ef43a2717c6549f05b09d785889377d /backends | |
parent | 2ec957327cdfae6cee592a52958a9c937ea4b13c (diff) | |
download | elfutils-aa1c2ca808a267a5a3c372de5461c1f67f9a8869.tar.gz |
Replace some K&R function definitions with ansi-C definitions.
Signed-off-by: Chih-Hung Hsieh <chh@google.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
Diffstat (limited to 'backends')
-rw-r--r-- | backends/ChangeLog | 16 | ||||
-rw-r--r-- | backends/aarch64_init.c | 9 | ||||
-rw-r--r-- | backends/alpha_init.c | 9 | ||||
-rw-r--r-- | backends/arm_init.c | 9 | ||||
-rw-r--r-- | backends/i386_init.c | 9 | ||||
-rw-r--r-- | backends/ia64_init.c | 9 | ||||
-rw-r--r-- | backends/ppc64_init.c | 9 | ||||
-rw-r--r-- | backends/ppc_init.c | 9 | ||||
-rw-r--r-- | backends/s390_init.c | 9 | ||||
-rw-r--r-- | backends/sh_init.c | 9 | ||||
-rw-r--r-- | backends/sparc_init.c | 9 | ||||
-rw-r--r-- | backends/tilegx_init.c | 9 | ||||
-rw-r--r-- | backends/x86_64_init.c | 9 |
13 files changed, 64 insertions, 60 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index 4accedcb..2059d862 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,19 @@ +2015-09-04 Chih-Hung Hsieh <chh@google.com> + + * aarch64_init.c (aarch64_init): Replace K&R function definition + with ansi-C definitions. + * alpha_init.c (alpha_init): Likewise. + * arm_init.c (arm_init): Likewise. + * i386_init.c (i386_init): Likewise. + * ia64_init.c (ia64_init): Likewise. + * ppc64_init.c (ppc64_init): Likewise. + * ppc_init.c (ppc_init): Likewise. + * s390_init.c (s390_init): Likewise. + * sh_init.c (sh_init): Likewise. + * sparc_init.c (sparc_init): Likewise. + * tilegx_init.c (tilegx_init): Likewise. + * x86_64_init.c (x86_64_init): Likewise. + 2015-09-03 Mark Wielaard <mjw@redhat.com> * sparc_regs.c (sparc_register_info): Use ebl->class not ebl->machine. diff --git a/backends/aarch64_init.c b/backends/aarch64_init.c index b0fd17a7..6395f117 100644 --- a/backends/aarch64_init.c +++ b/backends/aarch64_init.c @@ -39,11 +39,10 @@ const char * -aarch64_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +aarch64_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/alpha_init.c b/backends/alpha_init.c index a3307d83..25c5b32f 100644 --- a/backends/alpha_init.c +++ b/backends/alpha_init.c @@ -40,11 +40,10 @@ const char * -alpha_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +alpha_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/arm_init.c b/backends/arm_init.c index f3e5f0a9..caadac65 100644 --- a/backends/arm_init.c +++ b/backends/arm_init.c @@ -40,11 +40,10 @@ const char * -arm_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +arm_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/i386_init.c b/backends/i386_init.c index 1e0b4863..515d5ac0 100644 --- a/backends/i386_init.c +++ b/backends/i386_init.c @@ -39,11 +39,10 @@ #include "common-reloc.c" const char * -i386_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +i386_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/ia64_init.c b/backends/ia64_init.c index 91da748d..7241d7b8 100644 --- a/backends/ia64_init.c +++ b/backends/ia64_init.c @@ -39,11 +39,10 @@ #include "common-reloc.c" const char * -ia64_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +ia64_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/ppc64_init.c b/backends/ppc64_init.c index 56e1828e..2ba82327 100644 --- a/backends/ppc64_init.c +++ b/backends/ppc64_init.c @@ -42,11 +42,10 @@ const char * -ppc64_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +ppc64_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/ppc_init.c b/backends/ppc_init.c index ad92765c..c3e3ca36 100644 --- a/backends/ppc_init.c +++ b/backends/ppc_init.c @@ -40,11 +40,10 @@ const char * -ppc_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +ppc_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/s390_init.c b/backends/s390_init.c index 26b20b49..ba8df45d 100644 --- a/backends/s390_init.c +++ b/backends/s390_init.c @@ -41,11 +41,10 @@ extern __typeof (s390_core_note) s390x_core_note; const char * -s390_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +s390_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/sh_init.c b/backends/sh_init.c index 90ddcb2c..5526aca1 100644 --- a/backends/sh_init.c +++ b/backends/sh_init.c @@ -40,11 +40,10 @@ const char * -sh_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +sh_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/sparc_init.c b/backends/sparc_init.c index 7d229981..18d73494 100644 --- a/backends/sparc_init.c +++ b/backends/sparc_init.c @@ -40,11 +40,10 @@ extern __typeof (EBLHOOK (core_note)) sparc64_core_note attribute_hidden; const char * -sparc_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +sparc_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/tilegx_init.c b/backends/tilegx_init.c index 858798bf..162ed362 100644 --- a/backends/tilegx_init.c +++ b/backends/tilegx_init.c @@ -38,11 +38,10 @@ #include "common-reloc.c" const char * -tilegx_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +tilegx_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) diff --git a/backends/x86_64_init.c b/backends/x86_64_init.c index 273eabbf..cfd0158c 100644 --- a/backends/x86_64_init.c +++ b/backends/x86_64_init.c @@ -42,11 +42,10 @@ extern __typeof (EBLHOOK (core_note)) x32_core_note attribute_hidden; const char * -x86_64_init (elf, machine, eh, ehlen) - Elf *elf __attribute__ ((unused)); - GElf_Half machine __attribute__ ((unused)); - Ebl *eh; - size_t ehlen; +x86_64_init (Elf *elf __attribute__ ((unused)), + GElf_Half machine __attribute__ ((unused)), + Ebl *eh, + size_t ehlen) { /* Check whether the Elf_BH object has a sufficent size. */ if (ehlen < sizeof (Ebl)) |