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 /libelf/elf32_getehdr.c | |
| 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 'libelf/elf32_getehdr.c')
| -rw-r--r-- | libelf/elf32_getehdr.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libelf/elf32_getehdr.c b/libelf/elf32_getehdr.c index ee0a2e0f..2b9ad1fa 100644 --- a/libelf/elf32_getehdr.c +++ b/libelf/elf32_getehdr.c @@ -1,5 +1,5 @@ /* Get ELF header. - Copyright (C) 1998, 1999, 2000, 2002 Red Hat, Inc. + Copyright (C) 1998, 1999, 2000, 2002, 2015 Red Hat, Inc. This file is part of elfutils. Written by Ulrich Drepper <[email protected]>, 1998. @@ -42,9 +42,7 @@ static ElfW2(LIBELFBITS,Ehdr) * -getehdr_impl (elf, wrlock) - Elf *elf; - int wrlock; +getehdr_impl (Elf *elf, int wrlock) { if (elf == NULL) return NULL; @@ -77,15 +75,13 @@ getehdr_impl (elf, wrlock) } ElfW2(LIBELFBITS,Ehdr) * -__elfw2(LIBELFBITS,getehdr_wrlock) (elf) - Elf *elf; +__elfw2(LIBELFBITS,getehdr_wrlock) (Elf *elf) { return getehdr_impl (elf, 1); } ElfW2(LIBELFBITS,Ehdr) * -elfw2(LIBELFBITS,getehdr) (elf) - Elf *elf; +elfw2(LIBELFBITS,getehdr) (Elf *elf) { ElfW2(LIBELFBITS,Ehdr) *result; if (elf == NULL) |
