diff options
| author | Mark Wielaard <[email protected]> | 2015-09-22 22:27:01 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-09-23 15:50:55 +0200 |
| commit | 1ccdfb683ad6c7e59793136c3a657ddf131cafd1 (patch) | |
| tree | d5d24ce4ca0beec37e1ee2fe1f8a36af0e218e28 /backends | |
| parent | e260d79d73be07aee2860c5a5baf4f12c230ad6b (diff) | |
Remove old-style function definitions.
We already require -std=gnu99 and old-style function definitions might
hide some compiler warnings.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/ChangeLog | 6 | ||||
| -rw-r--r-- | backends/arm_attrs.c | 10 | ||||
| -rw-r--r-- | backends/linux-core-note.c | 12 | ||||
| -rw-r--r-- | backends/ppc_attrs.c | 10 |
4 files changed, 16 insertions, 22 deletions
diff --git a/backends/ChangeLog b/backends/ChangeLog index 2059d862..9d98f35f 100644 --- a/backends/ChangeLog +++ b/backends/ChangeLog @@ -1,3 +1,9 @@ +2015-09-22 Mark Wielaard <[email protected]> + + * arm_attrs.c: Remove old-style function definitions. + * linux-core-note.c: Likewise. + * ppc_attrs.c: Likewise. + 2015-09-04 Chih-Hung Hsieh <[email protected]> * aarch64_init.c (aarch64_init): Replace K&R function definition diff --git a/backends/arm_attrs.c b/backends/arm_attrs.c index c858715d..6842b771 100644 --- a/backends/arm_attrs.c +++ b/backends/arm_attrs.c @@ -44,13 +44,9 @@ } while (0) bool -arm_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name) - Ebl *ebl __attribute__ ((unused)); - const char *vendor; - int tag; - uint64_t value __attribute__ ((unused)); - const char **tag_name; - const char **value_name; +arm_check_object_attribute (Ebl *ebl __attribute__ ((unused)), + const char *vendor, int tag, uint64_t value, + const char **tag_name, const char **value_name) { if (!strcmp (vendor, "aeabi")) switch (tag) diff --git a/backends/linux-core-note.c b/backends/linux-core-note.c index db82e85e..ff2b226f 100644 --- a/backends/linux-core-note.c +++ b/backends/linux-core-note.c @@ -204,14 +204,10 @@ static const Ebl_Core_Item vmcoreinfo_items[] = #undef FIELD int -EBLHOOK(core_note) (nhdr, name, regs_offset, nregloc, reglocs, nitems, items) - const GElf_Nhdr *nhdr; - const char *name; - GElf_Word *regs_offset; - size_t *nregloc; - const Ebl_Register_Location **reglocs; - size_t *nitems; - const Ebl_Core_Item **items; +EBLHOOK(core_note) (const GElf_Nhdr *nhdr, const char *name, + GElf_Word *regs_offset, size_t *nregloc, + const Ebl_Register_Location **reglocs, + size_t *nitems, const Ebl_Core_Item **items) { switch (nhdr->n_namesz) { diff --git a/backends/ppc_attrs.c b/backends/ppc_attrs.c index ebeafe5a..612c5769 100644 --- a/backends/ppc_attrs.c +++ b/backends/ppc_attrs.c @@ -37,13 +37,9 @@ #include "libebl_CPU.h" bool -ppc_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name) - Ebl *ebl __attribute__ ((unused)); - const char *vendor; - int tag; - uint64_t value; - const char **tag_name; - const char **value_name; +ppc_check_object_attribute (Ebl *ebl __attribute__ ((unused)), + const char *vendor, int tag, uint64_t value, + const char **tag_name, const char **value_name) { if (!strcmp (vendor, "gnu")) switch (tag) |
