]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Remove old-style function definitions.
authorMark Wielaard <mjw@redhat.com>
Tue, 22 Sep 2015 20:27:01 +0000 (22:27 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 23 Sep 2015 13:50:55 +0000 (15:50 +0200)
We already require -std=gnu99 and old-style function definitions might
hide some compiler warnings.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
236 files changed:
backends/ChangeLog
backends/arm_attrs.c
backends/linux-core-note.c
backends/ppc_attrs.c
config/ChangeLog
config/eu.am
lib/ChangeLog
lib/dynamicsizehash.c
lib/md5.c
lib/sha1.c
lib/xmalloc.c
lib/xstrdup.c
lib/xstrndup.c
libasm/ChangeLog
libasm/asm_abort.c
libasm/asm_addsleb128.c
libasm/asm_addstrz.c
libasm/asm_adduleb128.c
libasm/asm_align.c
libasm/asm_end.c
libasm/asm_error.c
libasm/asm_fill.c
libasm/asm_getelf.c
libasm/asm_newabssym.c
libasm/asm_newcomsym.c
libasm/asm_newscn.c
libasm/asm_newscn_ingrp.c
libasm/asm_newscngrp.c
libasm/asm_newsubscn.c
libasm/asm_newsym.c
libasm/asm_scngrp_newsignature.c
libdw/ChangeLog
libdw/dwarf_abbrevhaschildren.c
libdw/dwarf_addrdie.c
libdw/dwarf_aggregate_size.c
libdw/dwarf_arrayorder.c
libdw/dwarf_attr.c
libdw/dwarf_begin.c
libdw/dwarf_begin_elf.c
libdw/dwarf_bitoffset.c
libdw/dwarf_bitsize.c
libdw/dwarf_bytesize.c
libdw/dwarf_cfi_addrframe.c
libdw/dwarf_cfi_end.c
libdw/dwarf_child.c
libdw/dwarf_cu_die.c
libdw/dwarf_cu_getdwarf.c
libdw/dwarf_cuoffset.c
libdw/dwarf_diecu.c
libdw/dwarf_diename.c
libdw/dwarf_dieoffset.c
libdw/dwarf_end.c
libdw/dwarf_entry_breakpoints.c
libdw/dwarf_entrypc.c
libdw/dwarf_error.c
libdw/dwarf_formaddr.c
libdw/dwarf_formblock.c
libdw/dwarf_formflag.c
libdw/dwarf_formref.c
libdw/dwarf_formref_die.c
libdw/dwarf_formsdata.c
libdw/dwarf_formstring.c
libdw/dwarf_formudata.c
libdw/dwarf_frame_cfa.c
libdw/dwarf_frame_info.c
libdw/dwarf_frame_register.c
libdw/dwarf_getabbrev.c
libdw/dwarf_getabbrevattr.c
libdw/dwarf_getabbrevcode.c
libdw/dwarf_getabbrevtag.c
libdw/dwarf_getarange_addr.c
libdw/dwarf_getaranges.c
libdw/dwarf_getattrcnt.c
libdw/dwarf_getcfi.c
libdw/dwarf_getcfi_elf.c
libdw/dwarf_getelf.c
libdw/dwarf_getlocation.c
libdw/dwarf_getlocation_attr.c
libdw/dwarf_getlocation_die.c
libdw/dwarf_getlocation_implicit_pointer.c
libdw/dwarf_getmacros.c
libdw/dwarf_getpubnames.c
libdw/dwarf_getsrcdirs.c
libdw/dwarf_getstring.c
libdw/dwarf_hasattr.c
libdw/dwarf_haschildren.c
libdw/dwarf_hasform.c
libdw/dwarf_highpc.c
libdw/dwarf_lowpc.c
libdw/dwarf_nextcu.c
libdw/dwarf_offdie.c
libdw/dwarf_peel_type.c
libdw/dwarf_siblingof.c
libdw/dwarf_srclang.c
libdw/dwarf_tag.c
libdw/dwarf_whatattr.c
libdw/dwarf_whatform.c
libdw/libdw_visit_scopes.c
libdwfl/ChangeLog
libdwfl/core-file.c
libdwfl/dwfl_error.c
libdwfl/dwfl_module_dwarf_cfi.c
libdwfl/dwfl_module_eh_cfi.c
libdwfl/dwfl_module_register_names.c
libdwfl/dwfl_module_return_value_location.c
libdwfl/dwfl_version.c
libebl/ChangeLog
libebl/ebl_check_special_section.c
libebl/ebl_check_special_symbol.c
libebl/ebl_syscall_abi.c
libebl/eblabicfi.c
libebl/eblauxvinfo.c
libebl/eblbackendname.c
libebl/eblbsspltp.c
libebl/eblcheckobjattr.c
libebl/eblcopyrelocp.c
libebl/eblcorenote.c
libebl/eblcorenotetypename.c
libebl/ebldebugscnp.c
libebl/ebldynamictagcheck.c
libebl/ebldynamictagname.c
libebl/eblelfclass.c
libebl/eblelfdata.c
libebl/eblelfmachine.c
libebl/eblgotpcreloccheck.c
libebl/eblmachineflagcheck.c
libebl/eblmachineflagname.c
libebl/eblmachinesectionflagcheck.c
libebl/eblnonerelocp.c
libebl/eblobjecttypename.c
libebl/eblobjnote.c
libebl/eblobjnotetypename.c
libebl/eblopenbackend.c
libebl/eblosabiname.c
libebl/eblreginfo.c
libebl/eblrelativerelocp.c
libebl/eblrelocsimpletype.c
libebl/eblreloctypecheck.c
libebl/eblreloctypename.c
libebl/eblrelocvaliduse.c
libebl/eblretval.c
libebl/eblsectionname.c
libebl/eblsectiontypename.c
libebl/eblsegmenttypename.c
libebl/eblshflagscombine.c
libebl/eblsymbolbindingname.c
libebl/eblsymboltypename.c
libebl/eblsysvhashentrysize.c
libelf/ChangeLog
libelf/elf32_checksum.c
libelf/elf32_fsize.c
libelf/elf32_getehdr.c
libelf/elf32_getphdr.c
libelf/elf32_getshdr.c
libelf/elf32_newehdr.c
libelf/elf32_newphdr.c
libelf/elf32_offscn.c
libelf/elf32_xlatetof.c
libelf/elf32_xlatetom.c
libelf/elf_begin.c
libelf/elf_cntl.c
libelf/elf_end.c
libelf/elf_error.c
libelf/elf_fill.c
libelf/elf_flagdata.c
libelf/elf_flagehdr.c
libelf/elf_flagelf.c
libelf/elf_flagphdr.c
libelf/elf_flagscn.c
libelf/elf_flagshdr.c
libelf/elf_getarhdr.c
libelf/elf_getaroff.c
libelf/elf_getarsym.c
libelf/elf_getbase.c
libelf/elf_getdata.c
libelf/elf_getdata_rawchunk.c
libelf/elf_getident.c
libelf/elf_getphdrnum.c
libelf/elf_getscn.c
libelf/elf_getshdrnum.c
libelf/elf_getshdrstrndx.c
libelf/elf_gnu_hash.c
libelf/elf_hash.c
libelf/elf_kind.c
libelf/elf_memory.c
libelf/elf_ndxscn.c
libelf/elf_newscn.c
libelf/elf_next.c
libelf/elf_nextscn.c
libelf/elf_rand.c
libelf/elf_rawdata.c
libelf/elf_rawfile.c
libelf/elf_readall.c
libelf/elf_strptr.c
libelf/elf_update.c
libelf/elf_version.c
libelf/gelf_checksum.c
libelf/gelf_fsize.c
libelf/gelf_getauxv.c
libelf/gelf_getclass.c
libelf/gelf_getdyn.c
libelf/gelf_getehdr.c
libelf/gelf_getlib.c
libelf/gelf_getmove.c
libelf/gelf_getnote.c
libelf/gelf_getphdr.c
libelf/gelf_getrel.c
libelf/gelf_getrela.c
libelf/gelf_getshdr.c
libelf/gelf_getsym.c
libelf/gelf_getsyminfo.c
libelf/gelf_getsymshndx.c
libelf/gelf_getverdaux.c
libelf/gelf_getverdef.c
libelf/gelf_getvernaux.c
libelf/gelf_getverneed.c
libelf/gelf_getversym.c
libelf/gelf_newehdr.c
libelf/gelf_newphdr.c
libelf/gelf_offscn.c
libelf/gelf_update_auxv.c
libelf/gelf_update_dyn.c
libelf/gelf_update_lib.c
libelf/gelf_update_move.c
libelf/gelf_update_sym.c
libelf/gelf_update_syminfo.c
libelf/gelf_update_symshndx.c
libelf/gelf_update_verdaux.c
libelf/gelf_update_verdef.c
libelf/gelf_update_vernaux.c
libelf/gelf_update_verneed.c
libelf/gelf_update_versym.c
libelf/gelf_xlatetof.c
libelf/gelf_xlatetom.c
src/ChangeLog
src/strip.c

index 2059d8622c30442a43be9a3d3acf067aa34d4244..9d98f35fdbe4d4a723b2104213234d9c04e4c4e2 100644 (file)
@@ -1,3 +1,9 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * arm_attrs.c: Remove old-style function definitions.
+       * linux-core-note.c: Likewise.
+       * ppc_attrs.c: Likewise.
+
 2015-09-04  Chih-Hung Hsieh  <chh@google.com>
 
        * aarch64_init.c (aarch64_init): Replace K&R function definition
index c858715d18d52eadabad4dea291453747e5f504d..6842b771fafc64be23c21ed3becbceb9e2d01236 100644 (file)
   } 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)
index db82e85e7e44c8f5c6ca1cfba275b8479c4bba4e..ff2b226ff48c3af5392b6e9cb07a5470649d702a 100644 (file)
@@ -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)
     {
index ebeafe5ac9a6e0614d6cfdc5ffabaca4b5b74866..612c5769ee0acd4c47d133a399702d7acd2f3a6f 100644 (file)
 #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)
index 31eeca7ac6c15ec9396e3da2f7a0e19980621010..067af115b6d4fd0a26c4ed90ec72cc5adfa279f2 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * eu.am (AM_CFLAGS): Add -Wold-style-definition -Wstrict-prototypes.
+
 2015-08-04  Mark Wielaard  <mjw@redhat.com>
 
        * 10-default-yama-scope.conf: New file.
index 70d32deb4f83d29bce2996505c1896aa46c4c7cb..441b68dde86713bb494dd8d77cf2849a859b8c95 100644 (file)
@@ -39,6 +39,7 @@ else
 STACK_USAGE_WARNING=
 endif
 AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Wformat=2 \
+           -Wold-style-definition -Wstrict-prototypes \
            $(if $($(*F)_no_Werror),,-Werror) \
            $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
            $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \
index d04bf1728479f11b55d0f71747ee3612fb4444cc..d1bdc7bcf54f812b324023ca87c3579a36df8be8 100644 (file)
@@ -1,3 +1,12 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * dynamicsizehash.c: Remove old-style function definitions.
+       * md5.c: Likewise.
+       * sha1.c: Likewise.
+       * xmalloc.c: Likewise.
+       * xstrdup.c: Likewise.
+       * xstrndup.c: Likewise.
+
 2015-05-31  Mark Wielaard  <mjw@redhat.com>
 
        * eu-config.h (ALLOW_UNALIGNED): Define when ! CHECK_UNDEFINED.
index 1fdff1b06dc3d6a8caa26443cb026a89cab60c5f..f9406eba98ba0b3fef275e77ff50873896295388 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.  */
@@ -176,9 +173,7 @@ int
 #define INIT(name) _INIT (name)
 #define _INIT(name) \
   name##_init
-INIT(NAME) (htab, init_size)
-     NAME *htab;
-     size_t init_size;
+INIT(NAME) (NAME *htab, size_t init_size)
 {
   /* We need the size to be a prime.  */
   init_size = next_prime (init_size);
@@ -201,8 +196,7 @@ int
 #define FREE(name) _FREE (name)
 #define _FREE(name) \
   name##_free
-FREE(NAME) (htab)
-     NAME *htab;
+FREE(NAME) (NAME *htab)
 {
   free (htab->table);
   return 0;
@@ -213,10 +207,7 @@ int
 #define INSERT(name) _INSERT (name)
 #define _INSERT(name) \
   name##_insert
-INSERT(NAME) (htab, hval, data)
-     NAME *htab;
-     HASHTYPE hval;
-     TYPE data;
+INSERT(NAME) (NAME *htab, HASHTYPE hval, TYPE data)
 {
   size_t idx;
 
@@ -240,10 +231,7 @@ int
 #define INSERT(name) _INSERT (name)
 #define _INSERT(name) \
   name##_overwrite
-INSERT(NAME) (htab, hval, data)
-     NAME *htab;
-     HASHTYPE hval;
-     TYPE data;
+INSERT(NAME) (NAME *htab, HASHTYPE hval, TYPE data)
 {
   size_t idx;
 
@@ -263,10 +251,7 @@ TYPE
 #define FIND(name) _FIND (name)
 #define _FIND(name) \
   name##_find
-FIND(NAME) (htab, hval, val)
-     NAME *htab;
-     HASHTYPE hval;
-     TYPE val;
+FIND(NAME) (NAME *htab, HASHTYPE hval, TYPE val)
 {
   size_t idx;
 
@@ -287,9 +272,7 @@ FIND(NAME) (htab, hval, val)
 # define _ITERATEFCT(name) \
   name##_iterate
 TYPE
-ITERATEFCT(NAME) (htab, ptr)
-     NAME *htab;
-     void **ptr;
+ITERATEFCT(NAME) (NAME *htab, void **ptr)
 {
   void *p = *ptr;
 
index 1c27549c43706867cd0ee18c0f57e675887b226f..40f304491fab7239688bd185c18df981659cfcb4 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -1,6 +1,6 @@
 /* Functions to compute MD5 message digest of files or memory blocks.
    according to the definition of MD5 in RFC 1321 from April 1992.
-   Copyright (C) 1995-2011 Red Hat, Inc.
+   Copyright (C) 1995-2011, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1995.
 
@@ -49,8 +49,7 @@ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
 /* Initialize structure containing state of computation.
    (RFC 1321, 3.3: Step 3)  */
 void
-md5_init_ctx (ctx)
-     struct md5_ctx *ctx;
+md5_init_ctx (struct md5_ctx *ctx)
 {
   ctx->A = 0x67452301;
   ctx->B = 0xefcdab89;
@@ -67,9 +66,7 @@ md5_init_ctx (ctx)
    IMPORTANT: On some systems it is required that RESBUF is correctly
    aligned for a 32 bits value.  */
 void *
-md5_read_ctx (ctx, resbuf)
-     const struct md5_ctx *ctx;
-     void *resbuf;
+md5_read_ctx (const struct md5_ctx *ctx, void *resbuf)
 {
   ((md5_uint32 *) resbuf)[0] = SWAP (ctx->A);
   ((md5_uint32 *) resbuf)[1] = SWAP (ctx->B);
@@ -95,9 +92,7 @@ le64_copy (char *dest, uint64_t x)
    IMPORTANT: On some systems it is required that RESBUF is correctly
    aligned for a 32 bits value.  */
 void *
-md5_finish_ctx (ctx, resbuf)
-     struct md5_ctx *ctx;
-     void *resbuf;
+md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
 {
   /* Take yet unprocessed bytes into account.  */
   md5_uint32 bytes = ctx->buflen;
@@ -129,9 +124,7 @@ md5_finish_ctx (ctx, resbuf)
    resulting message digest number will be written into the 16 bytes
    beginning at RESBLOCK.  */
 int
-md5_stream (stream, resblock)
-     FILE *stream;
-     void *resblock;
+md5_stream (FILE *stream, void *resblock)
 {
   /* Important: BLOCKSIZE must be a multiple of 64.  */
 #define BLOCKSIZE 4096
@@ -189,10 +182,7 @@ md5_stream (stream, resblock)
    output yields to the wanted ASCII representation of the message
    digest.  */
 void *
-md5_buffer (buffer, len, resblock)
-     const char *buffer;
-     size_t len;
-     void *resblock;
+md5_buffer (const char *buffer, size_t len, void *resblock)
 {
   struct md5_ctx ctx;
 
@@ -209,10 +199,7 @@ md5_buffer (buffer, len, resblock)
 
 
 void
-md5_process_bytes (buffer, len, ctx)
-     const void *buffer;
-     size_t len;
-     struct md5_ctx *ctx;
+md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
 {
   /* When we already have some bits in our internal buffer concatenate
      both inputs first.  */
@@ -296,10 +283,7 @@ md5_process_bytes (buffer, len, ctx)
    It is assumed that LEN % 64 == 0.  */
 
 void
-md5_process_block (buffer, len, ctx)
-     const void *buffer;
-     size_t len;
-     struct md5_ctx *ctx;
+md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
 {
   md5_uint32 correct_words[16];
   const md5_uint32 *words = buffer;
index 0e8456297d3f44d739f6949eea2346f503535024..6a9b61f8d3cbba57d3bd6751d49cf095731336c0 100644 (file)
@@ -1,6 +1,6 @@
 /* Functions to compute SHA1 message digest of files or memory blocks.
    according to the definition of SHA1 in FIPS 180-1 from April 1997.
-   Copyright (C) 2008-2011 Red Hat, Inc.
+   Copyright (C) 2008-2011, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2008.
 
@@ -48,8 +48,7 @@ static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
 
 /* Initialize structure containing state of computation.  */
 void
-sha1_init_ctx (ctx)
-     struct sha1_ctx *ctx;
+sha1_init_ctx (struct sha1_ctx *ctx)
 {
   ctx->A = 0x67452301;
   ctx->B = 0xefcdab89;
@@ -67,9 +66,7 @@ sha1_init_ctx (ctx)
    IMPORTANT: On some systems it is required that RESBUF is correctly
    aligned for a 32 bits value.  */
 void *
-sha1_read_ctx (ctx, resbuf)
-     const struct sha1_ctx *ctx;
-     void *resbuf;
+sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf)
 {
   ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A);
   ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B);
@@ -93,9 +90,7 @@ be64_copy (char *dest, uint64_t x)
    IMPORTANT: On some systems it is required that RESBUF is correctly
    aligned for a 32 bits value.  */
 void *
-sha1_finish_ctx (ctx, resbuf)
-     struct sha1_ctx *ctx;
-     void *resbuf;
+sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf)
 {
   /* Take yet unprocessed bytes into account.  */
   sha1_uint32 bytes = ctx->buflen;
@@ -123,10 +118,7 @@ sha1_finish_ctx (ctx, resbuf)
 
 
 void
-sha1_process_bytes (buffer, len, ctx)
-     const void *buffer;
-     size_t len;
-     struct sha1_ctx *ctx;
+sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx)
 {
   /* When we already have some bits in our internal buffer concatenate
      both inputs first.  */
@@ -220,10 +212,7 @@ sha1_process_bytes (buffer, len, ctx)
    It is assumed that LEN % 64 == 0.  */
 
 void
-sha1_process_block (buffer, len, ctx)
-     const void *buffer;
-     size_t len;
-     struct sha1_ctx *ctx;
+sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx)
 {
   sha1_uint32 computed_words[16];
 #define W(i) computed_words[(i) % 16]
index 27ccab95f5a4df5f082f5a01794bb16572e76c00..0cde384f71621a32ef0640c55f9700092f0fb836 100644 (file)
@@ -1,5 +1,5 @@
 /* Convenience functions for allocation.
-   Copyright (C) 2006 Red Hat, Inc.
+   Copyright (C) 2006, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
@@ -44,8 +44,7 @@
 
 /* Allocate N bytes of memory dynamically, with error checking.  */
 void *
-xmalloc (n)
-     size_t n;
+xmalloc (size_t n)
 {
   void *p;
 
@@ -58,8 +57,7 @@ xmalloc (n)
 
 /* Allocate memory for N elements of S bytes, with error checking.  */
 void *
-xcalloc (n, s)
-     size_t n, s;
+xcalloc (size_t n, size_t s)
 {
   void *p;
 
@@ -73,9 +71,7 @@ xcalloc (n, s)
 /* Change the size of an allocated block of memory P to N bytes,
    with error checking.  */
 void *
-xrealloc (p, n)
-     void *p;
-     size_t n;
+xrealloc (void *p, size_t n)
 {
   p = realloc (p, n);
   if (p == NULL)
index d9d6010c92588dcbc2fb153cf341fb05a0b73f1c..aa10352ac7b2b977877b9e9182a0d7cfcc760461 100644 (file)
@@ -1,5 +1,5 @@
 /* Convenience function for string allocation.
-   Copyright (C) 2006 Red Hat, Inc.
+   Copyright (C) 2006, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
@@ -36,8 +36,7 @@
 
 /* Return a newly allocated copy of STRING.  */
 char *
-xstrdup (string)
-     const char *string;
+xstrdup (const char *string)
 {
   return strcpy (xmalloc (strlen (string) + 1), string);
 }
index 52304e659f9d23f2fccaa228692de184ddcdcb64..92b79c17ec29f097360d781e877dbae3d862a36d 100644 (file)
@@ -1,5 +1,5 @@
 /* Convenience function for string allocation.
-   Copyright (C) 2006 Red Hat, Inc.
+   Copyright (C) 2006, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
@@ -36,9 +36,7 @@
 
 /* Return a newly allocated copy of STRING.  */
 char *
-xstrndup (string, n)
-     const char *string;
-     size_t n;
+xstrndup (const char *string, size_t n)
 {
   char *res;
   size_t len = strnlen (string, n);
index 91338d09a52378caa26d7a48c4b4e4426914f4b7..0eb84c6ca58a8846df444b73fbc255856565d7ba 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * asm_*.c: Remove old-style function definitions.
+
 2015-09-04  Chih-Hung Hsieh  <chh@google.com>
 
        * asm_addint8.c (FCT): Replace K&R function definition
index ef55ee9be6ac7ecdc82c5186346d7cd68d3eb875..12743dc6cb784c1e7fd62af93a39922194679507 100644 (file)
@@ -39,8 +39,7 @@
 
 
 int
-asm_abort (ctx)
-     AsmCtx_t *ctx;
+asm_abort (AsmCtx_t *ctx)
 {
   if (ctx == NULL)
     /* Something went wrong earlier.  */
index 3692789d0385a96dcc630c40979e4d564886480d..dc62c95171731f54dd5d6187348ca10930d9902e 100644 (file)
@@ -38,9 +38,7 @@
 
 
 int
-asm_addsleb128 (asmscn, num)
-     AsmScn_t *asmscn;
-     int32_t num;
+asm_addsleb128 (AsmScn_t *asmscn, int32_t num)
 {
   if (asmscn == NULL)
     return -1;
index 87663f3a8464629c97cb2a6746c2b744f6ecd351..26e06bb27ef840dae1c1614a1797099f90e43e87 100644 (file)
 
 /* Add zero terminated string STR of size LEN to (sub)section ASMSCN.  */
 int
-asm_addstrz (asmscn, str, len)
-     AsmScn_t *asmscn;
-     const char *str;
-     size_t len;
+asm_addstrz (AsmScn_t *asmscn, const char *str, size_t len)
 {
   if (asmscn == NULL)
     return -1;
index a3a857386d0bbab12a30ad851521ff1d5252e254..96438cce58b5662bee4d82b20535fbc09e09365f 100644 (file)
@@ -38,9 +38,7 @@
 
 
 int
-asm_adduleb128 (asmscn, num)
-     AsmScn_t *asmscn;
-     uint32_t num;
+asm_adduleb128 (AsmScn_t *asmscn, uint32_t num)
 {
   if (asmscn == NULL)
     return -1;
index 2025b027225df385f4ae7279fa3d5acf893f6375..b7708f596873314be1452585f46c90db270cff81 100644 (file)
@@ -40,9 +40,7 @@
 
 
 int
-asm_align (asmscn, value)
-     AsmScn_t *asmscn;
-     GElf_Word value;
+asm_align (AsmScn_t *asmscn, GElf_Word value)
 {
   if (asmscn == NULL)
     /* An earlier error.  */
@@ -134,9 +132,7 @@ asm_align (asmscn, value)
 /* Ensure there are at least LEN bytes available in the output buffer
    for ASMSCN.  */
 int
-__libasm_ensure_section_space (asmscn, len)
-     AsmScn_t *asmscn;
-     size_t len;
+__libasm_ensure_section_space (AsmScn_t *asmscn, size_t len)
 {
   /* The blocks with the section content are kept in a circular
      single-linked list.  */
index f4145a75c592613c03f13d6948be913068d45950..d629fcd80c1d6b8535635adf2c6a08213cb7ee7a 100644 (file)
@@ -498,8 +498,7 @@ binary_end (AsmCtx_t *ctx)
 
 
 int
-asm_end (ctx)
-     AsmCtx_t *ctx;
+asm_end (AsmCtx_t *ctx)
 {
   int result;
 
@@ -555,8 +554,7 @@ free_section (AsmScn_t *scnp)
 
 
 void
-__libasm_finictx (ctx)
-     AsmCtx_t *ctx;
+__libasm_finictx (AsmCtx_t *ctx)
 {
   /* Iterate through section table and free individual entries.  */
   AsmScn_t *scn = ctx->section_list;
index 300a7983724952b373b33e0c091117773f523d55..54430497d25d6d65cfa37f7dbac5c979fca21ebf 100644 (file)
@@ -52,8 +52,7 @@ asm_errno (void)
 
 
 void
-__libasm_seterrno (value)
-     int value;
+__libasm_seterrno (int value)
 {
   global_error = value;
 }
@@ -75,8 +74,7 @@ static const char *msgs[ASM_E_NUM] =
 };
 
 const char *
-asm_errmsg (error)
-     int error;
+asm_errmsg (int error)
 {
   int last_error = global_error;
 
index 6b92bc367d266eac12383b641ee6b54a163568b3..62d9d732e2b142d3980a84537c012e8e56bd8b1d 100644 (file)
 
 
 int
-asm_fill (asmscn, bytes, len)
-     AsmScn_t *asmscn;
-     void *bytes;
-     size_t len;
+asm_fill (AsmScn_t *asmscn, void *bytes, size_t len)
 {
   struct FillPattern *pattern;
   struct FillPattern *old_pattern;
index edeff13fcd6e0bb579ea29c29a9a7e1e1730e392..2a5c37bb7753d69e0a2c79a702e7decb4802ed01 100644 (file)
@@ -37,8 +37,7 @@
 
 
 Elf *
-asm_getelf (ctx)
-     AsmCtx_t *ctx;
+asm_getelf (AsmCtx_t *ctx)
 {
   return ctx != NULL ? ctx->out.elf : NULL;
 }
index 4e59901a20cfb1a816c2b0f35bdb8abca52b1f94..c5b7beaa9a11c5c3f57a98574483de8b38814da9 100644 (file)
@@ -52,13 +52,8 @@ static const AsmScn_t __libasm_abs_scn =
 
 
 AsmSym_t *
-asm_newabssym (ctx, name, size, value, type, binding)
-     AsmCtx_t *ctx;
-     const char *name;
-     GElf_Xword size;
-     GElf_Addr value;
-     int type;
-     int binding;
+asm_newabssym (AsmCtx_t *ctx, const char *name, GElf_Xword size,
+              GElf_Addr value, int type, int binding)
 {
   AsmSym_t *result;
 
index 7a578e0c4f6f07d3068d4bac8baf7bcb1cf07a1a..ee5c1409b93b82f63e3fbbf2646a2a976c23c674 100644 (file)
@@ -52,11 +52,8 @@ static const AsmScn_t __libasm_com_scn =
 
 
 AsmSym_t *
-asm_newcomsym (ctx, name, size, align)
-     AsmCtx_t *ctx;
-     const char *name;
-     GElf_Xword size;
-     GElf_Addr align;
+asm_newcomsym (AsmCtx_t *ctx, const char *name, GElf_Xword size,
+              GElf_Addr align)
 {
   AsmSym_t *result;
 
index ece7f5cb6625a39f6cd8baf47c71b3be1a0c02f9..e23676936a3e6a52d83d38a41f01533e641e86d2 100644 (file)
@@ -158,11 +158,8 @@ binary_newscn (AsmScn_t *result, GElf_Word type, GElf_Xword flags,
 
 
 AsmScn_t *
-asm_newscn (ctx, scnname, type, flags)
-     AsmCtx_t *ctx;
-     const char *scnname;
-     GElf_Word type;
-     GElf_Xword flags;
+asm_newscn (AsmCtx_t *ctx, const char *scnname, GElf_Word type,
+           GElf_Xword flags)
 {
   size_t scnname_len = strlen (scnname) + 1;
   AsmScn_t *result;
index 6ef7cb983dc8905820f78cbe5a26280d1df1063d..fd45be62254386f2556948677fb65aaae163a4ea 100644 (file)
 
 
 AsmScn_t *
-asm_newscn_ingrp (ctx, scnname, type, flags, grp)
-     AsmCtx_t *ctx;
-     const char *scnname;
-     GElf_Word type;
-     GElf_Xword flags;
-     AsmScnGrp_t *grp;
+asm_newscn_ingrp (AsmCtx_t *ctx, const char *scnname, GElf_Word type,
+                 GElf_Xword flags, AsmScnGrp_t *grp)
 {
   AsmScn_t *result = INTUSE (asm_newscn) (ctx, scnname, type, flags);
 
index 2808e69420e0b7423c9e92855f38ffb6411227c8..c5968c1f17e016e0dff255fe40c321ab9f6dd179 100644 (file)
 
 
 AsmScnGrp_t *
-asm_newscngrp (ctx, grpname, signature, flags)
-     AsmCtx_t *ctx;
-     const char *grpname;
-     AsmSym_t *signature;
-     Elf32_Word flags;
+asm_newscngrp (AsmCtx_t *ctx, const char *grpname, AsmSym_t *signature,
+              Elf32_Word flags)
 {
   AsmScnGrp_t *result;
   size_t grpname_len = strlen (grpname) + 1;
index a83607ac3783c452ce27ed6d88c70bb96b887ae3..906240acd2b8c3ee9a8c1b365457bae532c2e744 100644 (file)
@@ -38,9 +38,7 @@
 
 
 AsmScn_t *
-asm_newsubscn (asmscn, nr)
-     AsmScn_t *asmscn;
-     unsigned int nr;
+asm_newsubscn (AsmScn_t *asmscn, unsigned int nr)
 {
   AsmScn_t *runp;
   AsmScn_t *newp;
index deca08a4f1fb5faff995cd05483305a2bb8d0429..7f5229103c7736880dcc203df79a93b9b3680eae 100644 (file)
 
 
 AsmSym_t *
-asm_newsym (asmscn, name, size, type, binding)
-     AsmScn_t *asmscn;
-     const char *name;
-     GElf_Xword size;
-     int type;
-     int binding;
+asm_newsym (AsmScn_t *asmscn, const char *name, GElf_Xword size,
+           int type, int binding)
 {
 #define TEMPSYMLEN 10
   char tempsym[TEMPSYMLEN];
index d87f4a4ebdf6c39af58854797da56f5f16018c19..2fbb3346cc81c7d1e1146f4801d344392e788e46 100644 (file)
@@ -35,9 +35,7 @@
 
 
 int
-asm_scngrp_newsignature (grp, signature)
-     AsmScnGrp_t *grp;
-     AsmSym_t *signature;
+asm_scngrp_newsignature (AsmScnGrp_t *grp, AsmSym_t *signature)
 {
   if (grp == NULL || signature == NULL)
     return 1;
index 2e27ff96fef0113fdf963ac97e3f34933666dd5d..cb5ec9ce75226768ad6da3b7b56871e014cbb40a 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * *.c: Remove old-style function definitions.
+
 2015-09-15  Mark Wielaard  <mjw@redhat.com>
 
        * dwarf_peel_type.c (dwarf_peel_type): Don't reassign result pointer.
index 4a83e31dca973370e593b4a10635e80344d7f94e..0f17c7ed0d4c4347bb9e5321484ffcf381e300c8 100644 (file)
@@ -37,8 +37,7 @@
 
 
 int
-dwarf_abbrevhaschildren (abbrev)
-     Dwarf_Abbrev *abbrev;
+dwarf_abbrevhaschildren (Dwarf_Abbrev *abbrev)
 {
   return abbrev == NULL ? -1 : abbrev->has_children;
 }
index 94eb1480314150072ce9332f765d02faef4091c1..3a08ab752439dbd6e4b0fcf824c63662bf7e9853 100644 (file)
 
 
 Dwarf_Die *
-dwarf_addrdie (dbg, addr, result)
-     Dwarf *dbg;
-     Dwarf_Addr addr;
-     Dwarf_Die *result;
+dwarf_addrdie (Dwarf *dbg, Dwarf_Addr addr, Dwarf_Die *result)
 {
   Dwarf_Aranges *aranges;
   size_t naranges;
index 02478478ead6512a3034182f30ad255a44ad7808..aaeb7ed97279aa3a5ec7ca2f6be84da0475ca845 100644 (file)
@@ -230,9 +230,7 @@ aggregate_size (Dwarf_Die *die, Dwarf_Word *size, Dwarf_Die *type_mem)
 }
 
 int
-dwarf_aggregate_size (die, size)
-     Dwarf_Die *die;
-     Dwarf_Word *size;
+dwarf_aggregate_size (Dwarf_Die *die, Dwarf_Word *size)
 {
   Dwarf_Die type_mem;
 
index 759fa4d89bffdd297a7c6c5106c5319d07edb345..da64f99251e4150dccc27eeb60af38e974f9e560 100644 (file)
@@ -36,8 +36,7 @@
 
 
 int
-dwarf_arrayorder (die)
-     Dwarf_Die *die;
+dwarf_arrayorder (Dwarf_Die *die)
 {
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
index f247c1afe0ee0137182e2706418e99d56abe6896..db8acfe554ccd692dba01be1e6ea2dd792c21dea 100644 (file)
 
 
 Dwarf_Attribute *
-dwarf_attr (die, search_name, result)
-     Dwarf_Die *die;
-     unsigned int search_name;
-     Dwarf_Attribute *result;
+dwarf_attr (Dwarf_Die *die, unsigned int search_name, Dwarf_Attribute *result)
 {
   if (die == NULL)
     return NULL;
index 9f3050fdaf30024d3b2f09ea1a5fe3a38d2e4a12..d04e5b9f1b11ce0c31f12b0e5667153d6460c605 100644 (file)
@@ -39,9 +39,7 @@
 
 
 Dwarf *
-dwarf_begin (fd, cmd)
-     int fd;
-     Dwarf_Cmd cmd;
+dwarf_begin (int fd, Dwarf_Cmd cmd)
 {
   Elf *elf;
   Elf_Cmd elfcmd;
index 6d38946a387044e3e3fecde189aab0f95299dc48..63532fd894ec3d01827736bc0c771d10945f77b5 100644 (file)
@@ -341,10 +341,7 @@ scngrp_read (Dwarf *result, Elf *elf, GElf_Ehdr *ehdr, Elf_Scn *scngrp)
 
 
 Dwarf *
-dwarf_begin_elf (elf, cmd, scngrp)
-     Elf *elf;
-     Dwarf_Cmd cmd;
-     Elf_Scn *scngrp;
+dwarf_begin_elf (Elf *elf, Dwarf_Cmd cmd, Elf_Scn *scngrp)
 {
   GElf_Ehdr *ehdr;
   GElf_Ehdr ehdr_mem;
index 1648ecd71cad77100f8ef7895c00198597ed6e4d..c1a3a343d98754390c359267e801229ba8a93f44 100644 (file)
@@ -36,8 +36,7 @@
 
 
 int
-dwarf_bitoffset (die)
-     Dwarf_Die *die;
+dwarf_bitoffset (Dwarf_Die *die)
 {
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
index ea9946b8c812a5ff0ad5c83e82a255401f6c833f..0ed9b71005efb889d35544b4fb92e271a5fb153b 100644 (file)
@@ -36,8 +36,7 @@
 
 
 int
-dwarf_bitsize (die)
-     Dwarf_Die *die;
+dwarf_bitsize (Dwarf_Die *die)
 {
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
index 6499a0ae586c1a2a5ecb993b773b060a68a8fbd7..116cd32150828b947f2304483ec54c0a806799eb 100644 (file)
@@ -36,8 +36,7 @@
 
 
 int
-dwarf_bytesize (die)
-     Dwarf_Die *die;
+dwarf_bytesize (Dwarf_Die *die)
 {
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
index 1c0da03e643caec2c66d3af8197023fa35f38d49..44240279a957579b6c1d3469028e3d9df7da9411 100644 (file)
 #include "cfi.h"
 
 int
-dwarf_cfi_addrframe (cache, address, frame)
-     Dwarf_CFI *cache;
-     Dwarf_Addr address;
-     Dwarf_Frame **frame;
+dwarf_cfi_addrframe (Dwarf_CFI *cache, Dwarf_Addr address, Dwarf_Frame **frame)
 {
   /* Maybe there was a previous error.  */
   if (cache == NULL)
index 6eb2ade8457fef978f16e63bee55acbe712ac9c6..d68e2db34dc7fc842461f06f4ac4ed45a4f3769b 100644 (file)
@@ -35,8 +35,7 @@
 #include <stdlib.h>
 
 int
-dwarf_cfi_end (cache)
-     Dwarf_CFI *cache;
+dwarf_cfi_end (Dwarf_CFI *cache)
 {
   if (cache != NULL)
     {
index 58a438b5e6f8fdd8098eb6521c1b2f15063ea5d9..cc95fb3fad73a34222cccb6d7c848f555befacba 100644 (file)
@@ -115,9 +115,7 @@ __libdw_find_attr (Dwarf_Die *die, unsigned int search_name,
 
 
 int
-dwarf_child (die, result)
-     Dwarf_Die *die;
-     Dwarf_Die *result;
+dwarf_child (Dwarf_Die *die, Dwarf_Die *result)
 {
   /* Ignore previous errors.  */
   if (die == NULL)
index 48f4176feab3a7ed5b0e599ea1f19c9d73752adc..194da58b8d14888dd1eae82b2c9a3f69ee46fb2d 100644 (file)
 
 
 Dwarf_Die *
-dwarf_cu_die (cu, result, versionp, abbrev_offsetp, address_sizep,
-             offset_sizep, type_signaturep, type_offsetp)
-    Dwarf_CU *cu;
-    Dwarf_Die *result;
-    Dwarf_Half *versionp;
-    Dwarf_Off *abbrev_offsetp;
-    uint8_t *address_sizep;
-    uint8_t *offset_sizep;
-    uint64_t *type_signaturep;
-    Dwarf_Off *type_offsetp;
+dwarf_cu_die (Dwarf_CU *cu, Dwarf_Die *result, Dwarf_Half *versionp,
+             Dwarf_Off *abbrev_offsetp, uint8_t *address_sizep,
+             uint8_t *offset_sizep, uint64_t *type_signaturep,
+             Dwarf_Off *type_offsetp)
 {
   if (cu == NULL)
     return NULL;
index f8a2e9b9cef71087c9cfa841b82b6a4ed57e4ff5..562460fed6d50b0e2bb37698e4881204f8417b59 100644 (file)
@@ -36,8 +36,7 @@
 
 
 Dwarf *
-dwarf_cu_getdwarf (cu)
-     Dwarf_CU *cu;
+dwarf_cu_getdwarf (Dwarf_CU *cu)
 {
   if (cu == NULL)
     /* Some error occurred before.  */
index 3ceffdb0b29a85b993c18f1bc0a2093dd2b80555..ba376486e7fb0a5ed8c803cf00d0a16864cd722f 100644 (file)
@@ -36,8 +36,7 @@
 
 
 Dwarf_Off
-dwarf_cuoffset (die)
-     Dwarf_Die *die;
+dwarf_cuoffset (Dwarf_Die *die)
 {
   return (die == NULL
          ? (Dwarf_Off) -1l
index bd9a37aeafa3e9529b09c0e2ddfb3de3f0e536c4..5281c3522b9c299ce6f44fba37f30f2c47ab5619 100644 (file)
 
 
 Dwarf_Die *
-dwarf_diecu (die, result, address_sizep, offset_sizep)
-     Dwarf_Die *die;
-     Dwarf_Die *result;
-     uint8_t *address_sizep;
-     uint8_t *offset_sizep;
+dwarf_diecu (Dwarf_Die *die, Dwarf_Die *result, uint8_t *address_sizep,
+            uint8_t *offset_sizep)
 {
   if (die == NULL)
     return NULL;
index 050d8f1d3b0f1669e88de4f6680497fb49fbd107..96450c1c9ef00589111c19bbbb87546fbaa703fa 100644 (file)
@@ -36,8 +36,7 @@
 
 
 const char *
-dwarf_diename (die)
-     Dwarf_Die *die;
+dwarf_diename (Dwarf_Die *die)
 {
   Dwarf_Attribute attr_mem;
 
index 965b2c8dc76fd7b3cf27de65732d71025f6e7349..8028f6dd2af884852a2e008280c8d94caa5c1486 100644 (file)
@@ -36,8 +36,7 @@
 
 
 Dwarf_Off
-dwarf_dieoffset (die)
-     Dwarf_Die *die;
+dwarf_dieoffset (Dwarf_Die *die)
 {
   return (die == NULL
          ? ~0ul
index 922dc8f33dea090a534c009ebfdf6b65d41c60e7..32b551dfefe41874d19d3e1580bc8a16048b1928 100644 (file)
@@ -76,8 +76,7 @@ __libdw_free_zdata (Dwarf *dwarf)
 #endif
 
 int
-dwarf_end (dwarf)
-     Dwarf *dwarf;
+dwarf_end (Dwarf *dwarf)
 {
   if (dwarf != NULL)
     {
index ffd5169715724991908b5ddbc104eed841da24ea..abfee73c684cd84b35d5731c1ea8f23bed134aff 100644 (file)
@@ -35,9 +35,7 @@
 
 
 int
-dwarf_entry_breakpoints (die, bkpts)
-     Dwarf_Die *die;
-     Dwarf_Addr **bkpts;
+dwarf_entry_breakpoints (Dwarf_Die *die, Dwarf_Addr **bkpts)
 {
   int nbkpts = 0;
   *bkpts = NULL;
index 8eb39dbcc3eaf6921d002ae55675414b9bf740c0..0ef3b0ea35b6f8ccd648c468ebe9707cae00831e 100644 (file)
@@ -35,9 +35,7 @@
 
 
 int
-dwarf_entrypc (die, return_addr)
-     Dwarf_Die *die;
-     Dwarf_Addr *return_addr;
+dwarf_entrypc (Dwarf_Die *die, Dwarf_Addr *return_addr)
 {
   Dwarf_Attribute attr_mem;
 
index fe389995c961846e105f01312dbfaeafc269d18d..c431bd3e60def5f8fa17d180110f89888a2cba70 100644 (file)
@@ -100,8 +100,7 @@ static const char *errmsgs[] =
 
 
 void
-__libdw_seterrno (value)
-     int value;
+__libdw_seterrno (int value)
 {
   global_error = (value >= 0 && value < (int) nerrmsgs
                  ? value : DWARF_E_UNKNOWN_ERROR);
@@ -109,8 +108,7 @@ __libdw_seterrno (value)
 
 
 const char *
-dwarf_errmsg (error)
-     int error;
+dwarf_errmsg (int error)
 {
   int last_error = global_error;
 
index 9d4a38875f50ef162beb4d87c329f92ce8d338b1..ddc483822af6d86e0012f48700ba8932fd5b15d6 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_formaddr (attr, return_addr)
-     Dwarf_Attribute *attr;
-     Dwarf_Addr *return_addr;
+dwarf_formaddr (Dwarf_Attribute *attr, Dwarf_Addr *return_addr)
 {
   if (attr == NULL)
     return -1;
index 3d56f2224bf122297ffd5d8e27e2bebc400dfc6b..13f9e72a2a13c6751c00db2160e63117eb29cbe2 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_formblock (attr, return_block)
-     Dwarf_Attribute *attr;
-     Dwarf_Block *return_block;
+dwarf_formblock (Dwarf_Attribute *attr, Dwarf_Block *return_block)
 {
   if (attr == NULL)
     return -1;
index bdc2267ab56441489176ab25136e6e764aee5100..b48ede4e5875083075da3de474e231c4aa7253cc 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_formflag (attr, return_bool)
-     Dwarf_Attribute *attr;
-     bool *return_bool;
+dwarf_formflag (Dwarf_Attribute *attr, bool *return_bool)
 {
   if (attr == NULL)
     return -1;
index 2592437199740cbb979f01a102180ef8e42e77f4..c5fb19b16715b5b749aac6ffb76a0af22efc0074 100644 (file)
@@ -35,9 +35,7 @@
 #include "libdwP.h"
 
 int
-__libdw_formref (attr, return_offset)
-     Dwarf_Attribute *attr;
-     Dwarf_Off *return_offset;
+__libdw_formref (Dwarf_Attribute *attr, Dwarf_Off *return_offset)
 {
   const unsigned char *datap = attr->valp;
   const unsigned char *endp = attr->cu->endp;
@@ -102,9 +100,7 @@ __libdw_formref (attr, return_offset)
 /* This is the old public entry point.
    It is now deprecated in favor of dwarf_formref_die.  */
 int
-dwarf_formref (attr, return_offset)
-     Dwarf_Attribute *attr;
-     Dwarf_Off *return_offset;
+dwarf_formref (Dwarf_Attribute *attr, Dwarf_Off *return_offset)
 {
   if (attr == NULL)
     return -1;
index 8b92e22d11fafe09be84a5799d28884ca717d7c7..7e2b11a2bb6b828d50b9c733ee6c23bd16f4819c 100644 (file)
@@ -36,9 +36,7 @@
 
 
 Dwarf_Die *
-dwarf_formref_die (attr, result)
-     Dwarf_Attribute *attr;
-     Dwarf_Die *result;
+dwarf_formref_die (Dwarf_Attribute *attr, Dwarf_Die *result)
 {
   if (attr == NULL)
     return NULL;
index 2380bf4343e03d4d5e5c75d289bff2b53babab9a..e7deaee1036bf4c60e5c30d06817cfb6662c7ae1 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_formsdata (attr, return_sval)
-     Dwarf_Attribute *attr;
-     Dwarf_Sword *return_sval;
+dwarf_formsdata (Dwarf_Attribute *attr, Dwarf_Sword *return_sval)
 {
   if (attr == NULL)
     return -1;
index 02b56d4a13c5c8af0bf9911e17c1789fde09cadb..83abd53d341e86c53712482ddb160bbe0307e7b8 100644 (file)
@@ -36,8 +36,7 @@
 
 
 const char *
-dwarf_formstring (attrp)
-     Dwarf_Attribute *attrp;
+dwarf_formstring (Dwarf_Attribute *attrp)
 {
   /* Ignore earlier errors.  */
   if (attrp == NULL)
index a01ff312be14433013f7d520018f7c8a05011891..e41981a4e40b459b6cd37f2522481f30d69bc65d 100644 (file)
@@ -94,9 +94,7 @@ __libdw_formptr (Dwarf_Attribute *attr, int sec_index,
 }
 
 int
-dwarf_formudata (attr, return_uval)
-     Dwarf_Attribute *attr;
-     Dwarf_Word *return_uval;
+dwarf_formudata (Dwarf_Attribute *attr, Dwarf_Word *return_uval)
 {
   if (attr == NULL)
     return -1;
index a9ae7e736f090df64aff8e74f57fb618ba4989fa..07f998cd4f4327a80f1e3afc6a944473f795ca56 100644 (file)
 #include <stdlib.h>
 
 int
-dwarf_frame_cfa (fs, ops, nops)
-     Dwarf_Frame *fs;
-     Dwarf_Op **ops;
-     size_t *nops;
+dwarf_frame_cfa (Dwarf_Frame *fs, Dwarf_Op **ops, size_t *nops)
 {
   /* Maybe there was a previous error.  */
   if (fs == NULL)
index 7da46fb07875638083c9c48124566c8c362dd6e9..9ba560fc493607854d9fee838ecee8baaa163f7c 100644 (file)
 #include "cfi.h"
 
 int
-dwarf_frame_info (fs, start, end, signalp)
-     Dwarf_Frame *fs;
-     Dwarf_Addr *start;
-     Dwarf_Addr *end;
-     bool *signalp;
+dwarf_frame_info (Dwarf_Frame *fs, Dwarf_Addr *start, Dwarf_Addr *end,
+                 bool *signalp)
 {
   /* Maybe there was a previous error.  */
   if (fs == NULL)
index 10d2fe496b89b98e8e66aae01024465da331d77e..37e8e9176d771db19ea287f691dfd98cc46ed5c1 100644 (file)
 #include <dwarf.h>
 
 int
-dwarf_frame_register (fs, regno, ops_mem, ops, nops)
-     Dwarf_Frame *fs;
-     int regno;
-     Dwarf_Op ops_mem[3];
-     Dwarf_Op **ops;
-     size_t *nops;
+dwarf_frame_register (Dwarf_Frame *fs, int regno, Dwarf_Op *ops_mem,
+                     Dwarf_Op **ops, size_t *nops)
 {
   /* Maybe there was a previous error.  */
   if (fs == NULL)
index 0efde45bbd378fac6925c4febb2079e7e48ec1b5..ef51b847a1e0fa44beb52d054c65894d54f6eff4 100644 (file)
 
 Dwarf_Abbrev *
 internal_function
-__libdw_getabbrev (dbg, cu, offset, lengthp, result)
-     Dwarf *dbg;
-     struct Dwarf_CU *cu;
-     Dwarf_Off offset;
-     size_t *lengthp;
-     Dwarf_Abbrev *result;
+__libdw_getabbrev (Dwarf *dbg, struct Dwarf_CU *cu, Dwarf_Off offset,
+                  size_t *lengthp, Dwarf_Abbrev *result)
 {
   /* Don't fail if there is not .debug_abbrev section.  */
   if (dbg->sectiondata[IDX_debug_abbrev] == NULL)
@@ -154,10 +150,7 @@ __libdw_getabbrev (dbg, cu, offset, lengthp, result)
 
 
 Dwarf_Abbrev *
-dwarf_getabbrev (die, offset, lengthp)
-     Dwarf_Die *die;
-     Dwarf_Off offset;
-     size_t *lengthp;
+dwarf_getabbrev (Dwarf_Die *die, Dwarf_Off offset, size_t *lengthp)
 {
   return __libdw_getabbrev (die->cu->dbg, die->cu,
                            die->cu->orig_abbrev_offset + offset, lengthp,
index 574467ce203d7b72ddefaaeb6235b8961335fdf8..3b4da99ce3da786d662d270dd64db92c01579d64 100644 (file)
 
 
 int
-dwarf_getabbrevattr (abbrev, idx, namep, formp, offsetp)
-     Dwarf_Abbrev *abbrev;
-     size_t idx;
-     unsigned int *namep;
-     unsigned int *formp;
-     Dwarf_Off *offsetp;
+dwarf_getabbrevattr (Dwarf_Abbrev *abbrev, size_t idx, unsigned int *namep,
+                    unsigned int *formp, Dwarf_Off *offsetp)
 {
   if (abbrev == NULL)
     return -1;
index 0df9064953c55d01a30966207d4d3a0242ccd571..86917084405a0d1288fb2380c7bc05e0dcb7e4cf 100644 (file)
@@ -37,8 +37,7 @@
 
 
 unsigned int
-dwarf_getabbrevcode (abbrev)
-     Dwarf_Abbrev *abbrev;
+dwarf_getabbrevcode (Dwarf_Abbrev *abbrev)
 {
   return abbrev == NULL ? 0 : abbrev->code;
 }
index 36a5262d8f23866cba01676bd43935a38cc8752e..52aaa3f3b451473aff01f17a6fdc8363412cebd8 100644 (file)
@@ -37,8 +37,7 @@
 
 
 unsigned int
-dwarf_getabbrevtag (abbrev)
-     Dwarf_Abbrev *abbrev;
+dwarf_getabbrevtag (Dwarf_Abbrev *abbrev)
 {
   return abbrev == NULL ? 0 : abbrev->tag;
 }
index fc143de9b3477f0da32e500e75ae7b92a7418036..d383e2289bc4696bc339d7bae4b1c826ec52968c 100644 (file)
@@ -35,9 +35,7 @@
 
 
 Dwarf_Arange *
-dwarf_getarange_addr (aranges, addr)
-     Dwarf_Aranges *aranges;
-     Dwarf_Addr addr;
+dwarf_getarange_addr (Dwarf_Aranges *aranges, Dwarf_Addr addr)
 {
   if (aranges == NULL)
     return NULL;
index 6c6169e957bfb0aedd0498bb07175a3539296ed6..4252746e06c3730e11cb1b1e230bd69bccbd654e 100644 (file)
@@ -54,10 +54,7 @@ compare_aranges (const void *a, const void *b)
 }
 
 int
-dwarf_getaranges (dbg, aranges, naranges)
-     Dwarf *dbg;
-     Dwarf_Aranges **aranges;
-     size_t *naranges;
+dwarf_getaranges (Dwarf *dbg, Dwarf_Aranges **aranges, size_t *naranges)
 {
   if (dbg == NULL)
     return -1;
index 72be766ee6ec792f8e7c3c1e1e86845c1dd61077..2bfb4ac52168d74b72f1dc99415936e076b50cfc 100644 (file)
@@ -35,9 +35,7 @@
 
 
 int
-dwarf_getattrcnt (abbrev, attrcntp)
-     Dwarf_Abbrev *abbrev;
-     size_t *attrcntp;
+dwarf_getattrcnt (Dwarf_Abbrev *abbrev, size_t *attrcntp)
 {
   if (abbrev == NULL)
     return -1;
index a49a9f06650dd189211eac7cc2a834693cded073..9aed403edf9db2292eaa87fcb1c383d4b347e277 100644 (file)
@@ -35,8 +35,7 @@
 #include <dwarf.h>
 
 Dwarf_CFI *
-dwarf_getcfi (dbg)
-     Dwarf *dbg;
+dwarf_getcfi (Dwarf *dbg)
 {
   if (dbg == NULL)
     return NULL;
index 3e611f8f10442bfdd20f02270fda61ae18fb4525..315cc02f664452288664b2b73bf187fdce12fcd4 100644 (file)
@@ -311,8 +311,7 @@ getcfi_shdr (Elf *elf, const GElf_Ehdr *ehdr)
 }
 
 Dwarf_CFI *
-dwarf_getcfi_elf (elf)
-     Elf *elf;
+dwarf_getcfi_elf (Elf *elf)
 {
   if (elf_kind (elf) != ELF_K_ELF)
     {
index ecd18592c26a41702a4fb01b00cbd95e3d13ad6b..2d6268ea4d084b2e3bcfa34ed698269424e19a64 100644 (file)
@@ -37,8 +37,7 @@
 
 
 Elf *
-dwarf_getelf (dwarf)
-     Dwarf *dwarf;
+dwarf_getelf (Dwarf *dwarf)
 {
   if (dwarf == NULL)
     /* Some error occurred before.  */
index 0a0e04b4c142422526d4a3158c5f8612b75baa0b..a4a2761eed625e22a806b176ab4f2c7a647282d0 100644 (file)
@@ -113,10 +113,8 @@ store_implicit_value (Dwarf *dbg, void **cache, Dwarf_Op *op)
 }
 
 int
-dwarf_getlocation_implicit_value (attr, op, return_block)
-     Dwarf_Attribute *attr;
-     const Dwarf_Op *op;
-     Dwarf_Block *return_block;
+dwarf_getlocation_implicit_value (Dwarf_Attribute *attr, const Dwarf_Op *op,
+                                 Dwarf_Block *return_block)
 {
   if (attr == NULL)
     return -1;
@@ -609,10 +607,7 @@ getlocation (struct Dwarf_CU *cu, const Dwarf_Block *block,
 }
 
 int
-dwarf_getlocation (attr, llbuf, listlen)
-     Dwarf_Attribute *attr;
-     Dwarf_Op **llbuf;
-     size_t *listlen;
+dwarf_getlocation (Dwarf_Attribute *attr, Dwarf_Op **llbuf, size_t *listlen)
 {
   if (! attr_ok (attr))
     return -1;
@@ -630,9 +625,7 @@ dwarf_getlocation (attr, llbuf, listlen)
 }
 
 static int
-attr_base_address (attr, basep)
-     Dwarf_Attribute *attr;
-     Dwarf_Addr *basep;
+attr_base_address (Dwarf_Attribute *attr, Dwarf_Addr *basep)
 {
   /* Fetch the CU's base address.  */
   Dwarf_Die cudie = CUDIE (attr->cu);
@@ -661,10 +654,8 @@ attr_base_address (attr, basep)
 }
 
 static int
-initial_offset_base (attr, offset, basep)
-     Dwarf_Attribute *attr;
-     ptrdiff_t *offset;
-     Dwarf_Addr *basep;
+initial_offset_base (Dwarf_Attribute *attr, ptrdiff_t *offset,
+                    Dwarf_Addr *basep)
 {
   if (attr_base_address (attr, basep) != 0)
     return -1;
@@ -738,12 +729,8 @@ getlocations_addr (Dwarf_Attribute *attr, ptrdiff_t offset,
 }
 
 int
-dwarf_getlocation_addr (attr, address, llbufs, listlens, maxlocs)
-     Dwarf_Attribute *attr;
-     Dwarf_Addr address;
-     Dwarf_Op **llbufs;
-     size_t *listlens;
-     size_t maxlocs;
+dwarf_getlocation_addr (Dwarf_Attribute *attr, Dwarf_Addr address,
+                       Dwarf_Op **llbufs, size_t *listlens, size_t maxlocs)
 {
   if (! attr_ok (attr))
     return -1;
@@ -813,14 +800,9 @@ dwarf_getlocation_addr (attr, address, llbufs, listlens, maxlocs)
 }
 
 ptrdiff_t
-dwarf_getlocations (attr, offset, basep, startp, endp, expr, exprlen)
-     Dwarf_Attribute *attr;
-     ptrdiff_t offset;
-     Dwarf_Addr *basep;
-     Dwarf_Addr *startp;
-     Dwarf_Addr *endp;
-     Dwarf_Op **expr;
-     size_t *exprlen;
+dwarf_getlocations (Dwarf_Attribute *attr, ptrdiff_t offset, Dwarf_Addr *basep,
+                   Dwarf_Addr *startp, Dwarf_Addr *endp, Dwarf_Op **expr,
+                   size_t *exprlen)
 {
   if (! attr_ok (attr))
     return -1;
index 3229baf624dc844dab920988d75059d93654c01e..8b6a4afda3d40e59afd8d3222f304624c3f95326 100644 (file)
@@ -53,10 +53,7 @@ attr_form_cu (Dwarf_Attribute *attr)
 }
 
 int
-dwarf_getlocation_attr (attr, op, result)
-     Dwarf_Attribute *attr;
-     const Dwarf_Op *op;
-     Dwarf_Attribute *result;
+dwarf_getlocation_attr (Dwarf_Attribute *attr, const Dwarf_Op *op, Dwarf_Attribute *result)
 {
   if (attr == NULL)
     return -1;
index fa03aac24325b8dc9ef136502bac29e4748b0995..b4908d2bad45f511232c7c7508845313fb60119e 100644 (file)
 #include <libdwP.h>
 
 int
-dwarf_getlocation_die (attr, op, result)
-     Dwarf_Attribute *attr;
-     const Dwarf_Op *op;
-     Dwarf_Die *result;
+dwarf_getlocation_die (Dwarf_Attribute *attr, const Dwarf_Op *op,
+                      Dwarf_Die *result)
 {
   if (attr == NULL)
     return -1;
index f1c16be7783a628f65fea50b08d9f09771d8cdec..95053820222560e667690fb4d76e91bf41e721e5 100644 (file)
@@ -49,10 +49,8 @@ __libdw_empty_loc_attr (Dwarf_Attribute *attr)
 }
 
 int
-dwarf_getlocation_implicit_pointer (attr, op, result)
-     Dwarf_Attribute *attr;
-     const Dwarf_Op *op;
-     Dwarf_Attribute *result;
+dwarf_getlocation_implicit_pointer (Dwarf_Attribute *attr, const Dwarf_Op *op,
+                                   Dwarf_Attribute *result)
 {
   if (attr == NULL)
     return -1;
index a326e58654970081f98caa7d293655997447c7a3..eb5050853905fff01e7415e650c99f6d2b639d81 100644 (file)
@@ -511,11 +511,8 @@ dwarf_getmacros_off (Dwarf *dbg, Dwarf_Off macoff,
 }
 
 ptrdiff_t
-dwarf_getmacros (cudie, callback, arg, token)
-     Dwarf_Die *cudie;
-     int (*callback) (Dwarf_Macro *, void *);
-     void *arg;
-     ptrdiff_t token;
+dwarf_getmacros (Dwarf_Die *cudie, int (*callback) (Dwarf_Macro *, void *),
+                void *arg, ptrdiff_t token)
 {
   if (cudie == NULL)
     {
index 41b2407b1dcb5dadb461ecbce47571ad095dba3a..462b6ff03013f75ff4c610731e1c3eed2edb66ec 100644 (file)
@@ -140,11 +140,9 @@ get_offsets (Dwarf *dbg)
 
 
 ptrdiff_t
-dwarf_getpubnames (dbg, callback, arg, offset)
-     Dwarf *dbg;
-     int (*callback) (Dwarf *, Dwarf_Global *, void *);
-     void *arg;
-     ptrdiff_t offset;
+dwarf_getpubnames (Dwarf *dbg,
+                  int (*callback) (Dwarf *, Dwarf_Global *, void *),
+                  void *arg, ptrdiff_t offset)
 {
   if (dbg == NULL)
     return -1l;
index 47283ec27d871f0e2021895048327dd8819d30f0..8160ed30255916b8761407fd82b007928d3a530b 100644 (file)
 
 
 int
-dwarf_getsrcdirs (files, result, ndirs)
-     Dwarf_Files *files;
-     const char *const **result;
-     size_t *ndirs;
+dwarf_getsrcdirs (Dwarf_Files *files, const char *const **result, size_t *ndirs)
 {
   if (files == NULL)
     return -1;
index 672bb27e5f724ecd2a1f731ceb5d805d7b1fd2bc..5620cb07358b083b7ee1f70cd73aff321e2c0658 100644 (file)
 
 
 const char *
-dwarf_getstring (dbg, offset, lenp)
-     Dwarf *dbg;
-     Dwarf_Off offset;
-     size_t *lenp;
+dwarf_getstring (Dwarf *dbg, Dwarf_Off offset, size_t *lenp)
 {
   if (dbg == NULL)
     return NULL;
index 812c09bc8577bd0487205027fa279265262fb9eb..2bb8dc82631135405ec3141bc9c50f175b9fe1e3 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_hasattr (die, search_name)
-     Dwarf_Die *die;
-     unsigned int search_name;
+dwarf_hasattr (Dwarf_Die *die, unsigned int search_name)
 {
   if (die == NULL)
     return 0;
index d0ce51ea314c4aa19419c2e89c044eff4f88b784..03a817374547d708eb1ef9180441f9e031cf0a32 100644 (file)
@@ -36,8 +36,7 @@
 
 
 int
-dwarf_haschildren (die)
-     Dwarf_Die *die;
+dwarf_haschildren (Dwarf_Die *die)
 {
   /* Find the abbreviation entry.  */
   Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, NULL);
index a95ca9eae3e7bc6a705ee967b77940232a3cc1ea..a0c322989e2f8d4dff4f89317b07cb3e8b9ec2d1 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_hasform (attr, search_form)
-     Dwarf_Attribute *attr;
-     unsigned int search_form;
+dwarf_hasform (Dwarf_Attribute *attr, unsigned int search_form)
 {
   if (attr == NULL)
     return 0;
index 8bf93f03095e167cdf2e180c14d6249f70410bce..207025450ce41ae118b2aaee092421e3e7bff4bc 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_highpc (die, return_addr)
-     Dwarf_Die *die;
-     Dwarf_Addr *return_addr;
+dwarf_highpc (Dwarf_Die *die, Dwarf_Addr *return_addr)
 {
   Dwarf_Attribute attr_high_mem;
   Dwarf_Attribute *attr_high = INTUSE(dwarf_attr) (die, DW_AT_high_pc,
index 4677aed84421c8be3f814a9cfece848ceaf01cae..b3be2b0eb92de242d13759ab146c404885030b1d 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_lowpc (die, return_addr)
-     Dwarf_Die *die;
-     Dwarf_Addr *return_addr;
+dwarf_lowpc (Dwarf_Die *die, Dwarf_Addr *return_addr)
 {
   Dwarf_Attribute attr_mem;
 
index 875d86946d9ca3a25902ab3cb0ef0e8ce9f4a258..fa9b0af3c5dd8fb01ba95b01d3f59bcdc7b48506 100644 (file)
 
 
 int
-dwarf_next_unit (dwarf, off, next_off, header_sizep, versionp, abbrev_offsetp,
-                address_sizep, offset_sizep, type_signaturep, type_offsetp)
-     Dwarf *dwarf;
-     Dwarf_Off off;
-     Dwarf_Off *next_off;
-     size_t *header_sizep;
-     Dwarf_Half *versionp;
-     Dwarf_Off *abbrev_offsetp;
-     uint8_t *address_sizep;
-     uint8_t *offset_sizep;
-     uint64_t *type_signaturep;
-     Dwarf_Off *type_offsetp;
+dwarf_next_unit (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off,
+                size_t *header_sizep, Dwarf_Half *versionp,
+                Dwarf_Off *abbrev_offsetp, uint8_t *address_sizep,
+                uint8_t *offset_sizep, uint64_t *type_signaturep,
+                Dwarf_Off *type_offsetp)
 {
   const bool debug_types = type_signaturep != NULL;
   const size_t sec_idx = debug_types ? IDX_debug_types : IDX_debug_info;
@@ -182,15 +175,9 @@ dwarf_next_unit (dwarf, off, next_off, header_sizep, versionp, abbrev_offsetp,
 INTDEF(dwarf_next_unit)
 
 int
-dwarf_nextcu (dwarf, off, next_off, header_sizep, abbrev_offsetp,
-             address_sizep, offset_sizep)
-     Dwarf *dwarf;
-     Dwarf_Off off;
-     Dwarf_Off *next_off;
-     size_t *header_sizep;
-     Dwarf_Off *abbrev_offsetp;
-     uint8_t *address_sizep;
-     uint8_t *offset_sizep;
+dwarf_nextcu (Dwarf *dwarf, Dwarf_Off off, Dwarf_Off *next_off,
+             size_t *header_sizep, Dwarf_Off *abbrev_offsetp,
+             uint8_t *address_sizep, uint8_t *offset_sizep)
 {
   return INTUSE(dwarf_next_unit) (dwarf, off, next_off, header_sizep, NULL,
                                  abbrev_offsetp, address_sizep, offset_sizep,
index b5dd405dcdc779e0ea722e6bd9d27b3842150282..15f55c227c0cb2158771f11753ad865eb5057792 100644 (file)
@@ -71,20 +71,14 @@ __libdw_offdie (Dwarf *dbg, Dwarf_Off offset, Dwarf_Die *result,
 
 
 Dwarf_Die *
-dwarf_offdie (dbg, offset, result)
-     Dwarf *dbg;
-     Dwarf_Off offset;
-     Dwarf_Die *result;
+dwarf_offdie (Dwarf *dbg, Dwarf_Off offset, Dwarf_Die *result)
 {
   return __libdw_offdie (dbg, offset, result, false);
 }
 INTDEF(dwarf_offdie)
 
 Dwarf_Die *
-dwarf_offdie_types (dbg, offset, result)
-     Dwarf *dbg;
-     Dwarf_Off offset;
-     Dwarf_Die *result;
+dwarf_offdie_types (Dwarf *dbg, Dwarf_Off offset, Dwarf_Die *result)
 {
   return __libdw_offdie (dbg, offset, result, true);
 }
index 7b29d35a2e8c9eebacb5d8c3559f51a8f600c2b5..5dca8f88ce9766ca6e966877b5435ce67c74acd1 100644 (file)
@@ -36,9 +36,7 @@
 
 
 int
-dwarf_peel_type (die, result)
-     Dwarf_Die *die;
-     Dwarf_Die *result;
+dwarf_peel_type (Dwarf_Die *die, Dwarf_Die *result)
 {
   int tag;
 
index 0dafc179291a300a34ee367a12874dd85619e7e7..df39c1cbf9fc86e365a815cf5718e10ea92a3a83 100644 (file)
@@ -37,9 +37,7 @@
 
 
 int
-dwarf_siblingof (die, result)
-     Dwarf_Die *die;
-     Dwarf_Die *result;
+dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result)
 {
   /* Ignore previous errors.  */
   if (die == NULL)
index 6cc06ffbe5755c397b6ac38590a49bb99828d22c..f10e7642b7654b02eca9ae43ad613e502758110a 100644 (file)
@@ -36,8 +36,7 @@
 
 
 int
-dwarf_srclang (die)
-     Dwarf_Die *die;
+dwarf_srclang (Dwarf_Die *die)
 {
   Dwarf_Attribute attr_mem;
   Dwarf_Word value;
index 0b1a4b086a6c0de1e9a82d748f9cc48240050b46..331eaa0da1989e2726d820487a9df405eda14875 100644 (file)
@@ -79,8 +79,7 @@ __libdw_findabbrev (struct Dwarf_CU *cu, unsigned int code)
 
 
 int
-dwarf_tag (die)
-     Dwarf_Die *die;
+dwarf_tag (Dwarf_Die *die)
 {
   /* Find the abbreviation entry.  */
   Dwarf_Abbrev *abbrevp = __libdw_dieabbrev (die, NULL);
index 8fe5535b12a49913d16236c2dd7494a2c7be55b3..d664b021f10890ce1d1e457a45481f8cdb133fa2 100644 (file)
@@ -36,8 +36,7 @@
 
 
 unsigned int
-dwarf_whatattr (attr)
-     Dwarf_Attribute *attr;
+dwarf_whatattr (Dwarf_Attribute *attr)
 {
   return attr == NULL ? 0 : attr->code;
 }
index 1d0d14b0e5fa6f967aa10d151480af06d4619b8f..dee29a9f9e92eadd7a3d88720aed92c0631aa710 100644 (file)
@@ -36,8 +36,7 @@
 
 
 unsigned int
-dwarf_whatform (attr)
-     Dwarf_Attribute *attr;
+dwarf_whatform (Dwarf_Attribute *attr)
 {
   return attr == NULL ? 0 : attr->form;
 }
index d0b5134d697b36d91f19145d3795fa339fe7cf0d..c882e4a5af35606b31692830cf46f1ff6eff9c02 100644 (file)
@@ -65,13 +65,15 @@ may_have_scopes (Dwarf_Die *die)
 }
 
 int
-__libdw_visit_scopes (depth, root, imports, previsit, postvisit, arg)
-     unsigned int depth;
-     struct Dwarf_Die_Chain *root;
-     struct Dwarf_Die_Chain *imports;
-     int (*previsit) (unsigned int depth, struct Dwarf_Die_Chain *, void *);
-     int (*postvisit) (unsigned int depth, struct Dwarf_Die_Chain *, void *);
-     void *arg;
+__libdw_visit_scopes (unsigned int depth, struct Dwarf_Die_Chain *root,
+                     struct Dwarf_Die_Chain *imports,
+                     int (*previsit) (unsigned int,
+                                      struct Dwarf_Die_Chain *,
+                                      void *),
+                     int (*postvisit) (unsigned int,
+                                       struct Dwarf_Die_Chain *,
+                                       void *),
+                     void *arg)
 {
   struct Dwarf_Die_Chain child;
   int ret;
@@ -97,8 +99,8 @@ __libdw_visit_scopes (depth, root, imports, previsit, postvisit, arg)
     return false;
   }
 
-  inline int walk_children ()
-  {
+  inline int walk_children (void)
+{
     do
       {
        /* For an imported unit, it is logically as if the children of
index 0ab386fbd93092022ae7a316a1b6391451f87732..f34087c13624b5ceeeae5ea0c1dffbdc6e436b02 100644 (file)
@@ -1,3 +1,13 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * core-file.c: Remove old-style function definitions.
+       * dwfl_error.c: Likewise.
+       * dwfl_module_dwarf_cfi.c: Likewise.
+       * dwfl_module_eh_cfi.c: Likewise.
+       * dwfl_module_register_names.c: Likewise.
+       * dwfl_module_return_value_location.c: Likewise.
+       * dwfl_version.c: Likewise.
+
 2015-09-09  Chih-Hung Hsieh  <chh@google.com>
            Mark Wielaard  <mjw@redhat.com>
 
index bbe0899d88d9bf7b0874437e0cbcf00b3fcd309b..ea0725bf547bb7f057b24d87529b399684b4d200 100644 (file)
@@ -270,8 +270,8 @@ dwfl_elf_phdr_memory_callback (Dwfl *dwfl, int ndx,
   GElf_Off end;
   GElf_Addr end_vaddr;
 
-  inline void update_end ()
-  {
+  inline void update_end (void)
+{
     end = (phdr.p_offset + phdr.p_filesz + align - 1) & -align;
     end_vaddr = (phdr.p_vaddr + phdr.p_memsz + align - 1) & -align;
   }
index 56ec2b02ee6fcf3cb9ab2faf8036fdb9a3dee930..7bcf61cc704e9d964e47cfcdc8fef6ccad03f015 100644 (file)
@@ -138,8 +138,7 @@ __libdwfl_seterrno (Dwfl_Error error)
 
 
 const char *
-dwfl_errmsg (error)
-     int error;
+dwfl_errmsg (int error)
 {
   if (error == 0 || error == -1)
     {
index 5182d6a0ba44e15eee34cb740733546ea1959abc..1dac26d5aca4d8cff4b9df60999f25d4765b765c 100644 (file)
@@ -51,9 +51,7 @@ __libdwfl_set_cfi (Dwfl_Module *mod, Dwarf_CFI **slot, Dwarf_CFI *cfi)
 }
 
 Dwarf_CFI *
-dwfl_module_dwarf_cfi (mod, bias)
-     Dwfl_Module *mod;
-     Dwarf_Addr *bias;
+dwfl_module_dwarf_cfi (Dwfl_Module *mod, Dwarf_Addr *bias)
 {
   if (mod == NULL)
     return NULL;
index da10d9fb04f52b5b86b416613334c2d1bf972bbf..dbe43b0f58d3dbd9ab4ae30f4952999d304b67ae 100644 (file)
@@ -30,9 +30,7 @@
 #include "../libdw/cfi.h"
 
 Dwarf_CFI *
-dwfl_module_eh_cfi (mod, bias)
-     Dwfl_Module *mod;
-     Dwarf_Addr *bias;
+dwfl_module_eh_cfi (Dwfl_Module *mod, Dwarf_Addr *bias)
 {
   if (mod == NULL)
     return NULL;
index 2da4b539095500129e55b835dc4f4e46e629c99e..18fed3733248d14f34e713ff513d52a0bdda60d0 100644 (file)
 
 
 int
-dwfl_module_register_names (mod, func, arg)
-     Dwfl_Module *mod;
-     int (*func) (void *, int regno, const char *setname,
-                 const char *prefix, const char *regname,
-                 int bits, int type);
-     void *arg;
+dwfl_module_register_names (Dwfl_Module *mod,
+                           int (*func) (void *, int, const char *,
+                                        const char *, const char *,
+                                        int, int),
+                           void *arg)
 {
   if (unlikely (mod == NULL))
     return -1;
index ad83cbf93089029b10dcc975160d1bbd6d16351b..29da61fb101a14b4f9979d948e03904f30c67ee7 100644 (file)
 
 
 int
-dwfl_module_return_value_location (mod, functypedie, locops)
-     Dwfl_Module *mod;
-     Dwarf_Die *functypedie;
-     const Dwarf_Op **locops;
+dwfl_module_return_value_location (Dwfl_Module *mod, Dwarf_Die *functypedie,
+                                  const Dwarf_Op **locops)
 {
   if (mod == NULL)
     return -1;
index 9673a536662e8d6d0f887c8233072a259c58a21c..d1c5d9180ba7a553aea0b93ec707112e3b7843bd 100644 (file)
@@ -29,8 +29,7 @@
 #include "libdwflP.h"
 
 const char *
-dwfl_version (dwfl)
-     Dwfl *dwfl __attribute__ ((unused));
+dwfl_version (Dwfl *dwfl __attribute__ ((unused)))
 {
   return PACKAGE_VERSION;
 }
index aab085719a1247ff53cd86587a578d88e7e5948a..4ea6d498888b62ea4aaa72c0b78bbbaeae3c7aa5 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * *.c: Remove old-style function definitions.
+
 2015-09-09  Chih-Hung Hsieh  <chh@google.com>
 
        * ebldwarftoregno.c (ebl_dwarf_to_regno): Remove redundant NULL tests
index aabe44e64d915e8dfc46cab0108d59e4264b2edf..903b69d564388f8feeab0f11121d0ee83bc4eea7 100644 (file)
 
 
 bool
-ebl_check_special_section (ebl, ndx, shdr, sname)
-     Ebl *ebl;
-     int ndx;
-     const GElf_Shdr *shdr;
-     const char *sname;
+ebl_check_special_section (Ebl *ebl, int ndx, const GElf_Shdr *shdr,
+                          const char *sname)
 {
   return ebl != NULL && ebl->check_special_section (ebl, ndx, shdr, sname);
 }
index 8e702ba31510f5ac5f693358514cc8c1f9626249..bdcb026c0a48759fc85e6ffe25d2918d3ef1e6a0 100644 (file)
 
 
 bool
-ebl_check_special_symbol (ebl, ehdr, sym, name, destshdr)
-     Ebl *ebl;
-     GElf_Ehdr *ehdr;
-     const GElf_Sym *sym;
-     const char *name;
-     const GElf_Shdr *destshdr;
+ebl_check_special_symbol (Ebl *ebl, GElf_Ehdr *ehdr, const GElf_Sym *sym,
+                         const char *name, const GElf_Shdr *destshdr)
 {
   if (ebl == NULL)
     return false;
index de737037e6ac4409cabb88b1230c1fde87079d72..a25369d2829daa7acd13289b53d03864c77f291c 100644 (file)
 
 
 int
-ebl_syscall_abi (ebl, sp, pc, callno, args)
-     Ebl *ebl;
-     int *sp;
-     int *pc;
-     int *callno;
-     int args[6];
+ebl_syscall_abi (Ebl *ebl, int *sp, int *pc, int *callno, int *args)
 {
   return ebl != NULL ? ebl->syscall_abi (ebl, sp, pc, callno, args) : -1;
 }
index 20a29ea01076c7b75bfb71766ef71d369fd5e58e..6b0e18e4d7ce0caf7821005ea52afe3ad2c6a5e5 100644 (file)
@@ -34,9 +34,7 @@
 
 
 int
-ebl_abi_cfi (ebl, abi_info)
-     Ebl *ebl;
-     Dwarf_CIE *abi_info;
+ebl_abi_cfi (Ebl *ebl, Dwarf_CIE *abi_info)
 {
   return ebl == NULL ? -1 : ebl->abi_cfi (ebl, abi_info);
 }
index 5c310b29a7b7228630e4f86256dc94f7bfacf3e7..ce1141b80ec1eb7fa374a81d579af5260a56a0f9 100644 (file)
@@ -85,11 +85,8 @@ static const struct
 #define nauxv_types (sizeof auxv_types / sizeof auxv_types[0])
 
 int
-ebl_auxv_info (ebl, a_type, name, format)
-     Ebl *ebl;
-     GElf_Xword a_type;
-     const char **name;
-     const char **format;
+ebl_auxv_info (Ebl *ebl, GElf_Xword a_type, const char **name,
+              const char **format)
 {
   int result = ebl->auxv_info (a_type, name, format);
   if (result == 0 && a_type < nauxv_types && auxv_types[a_type].name != NULL)
index 92e576edd70d12b0c9f93d54d9baeb93519c1456..a2b2df698325c171be3555d188eda9681e32817a 100644 (file)
@@ -36,8 +36,7 @@
 
 
 const char *
-ebl_backend_name (ebl)
-     Ebl *ebl;
+ebl_backend_name (Ebl *ebl)
 {
   return ebl != NULL ? ebl->emulation : gettext ("No backend");
 }
index 95a5d8afdad14496bf0aaa8cca7ce5b8ce9318ab..24c4a08b0cb6793439d21fdae3015b3d0c7ad614 100644 (file)
@@ -35,8 +35,7 @@
 
 
 bool
-ebl_bss_plt_p (ebl)
-     Ebl *ebl;
+ebl_bss_plt_p (Ebl *ebl)
 {
   return ebl == NULL ? false : ebl->bss_plt_p (ebl->elf);
 }
index b0481d2fe72ddb6c947bad038541aab7cab8dd2e..b590a03959669e7c6a7b1353de59080f3cead462 100644 (file)
 
 
 bool
-ebl_check_object_attribute (ebl, vendor, tag, value, tag_name, value_name)
-     Ebl *ebl;
-     const char *vendor;
-     int tag;
-     uint64_t value;
-     const char **tag_name;
-     const char **value_name;
+ebl_check_object_attribute (Ebl *ebl, const char *vendor, int tag,
+                           uint64_t value, const char **tag_name,
+                           const char **value_name)
 {
   if (ebl->check_object_attribute (ebl, vendor, tag, value,
                                   tag_name, value_name))
index 702f8c7c18bc111cafc61b8c214c3ea15ec820df..0458c4f748df68724288b276007c2e0141924233 100644 (file)
@@ -35,9 +35,7 @@
 
 
 bool
-ebl_copy_reloc_p (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_copy_reloc_p (Ebl *ebl, int reloc)
 {
   return ebl->copy_reloc_p (reloc);
 }
index 2a79278ddc09451aa9eefbe313a2c9b76039e2d5..783f98151eee57f111babd741e8856f3f2724ce7 100644 (file)
 
 
 int
-ebl_core_note (ebl, nhdr, name,
-              regs_offset, nregloc, reglocs, nitems, items)
-     Ebl *ebl;
-     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;
+ebl_core_note (Ebl *ebl, 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)
 {
   int result = ebl->core_note (nhdr, name,
                               regs_offset, nregloc, reglocs, nitems, items);
index b6db6cd8eb8e13e72e7ba52adc1e646b44570181..826f9a1b21a407698a582b3fb19acc7b55e81174 100644 (file)
 #include <libeblP.h>
 
 const char *
-ebl_core_note_type_name (ebl, type, buf, len)
-     Ebl *ebl;
-     uint32_t type;
-     char *buf;
-     size_t len;
+ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len)
 {
   const char *res = ebl->core_note_type_name (type, buf, len);
 
index 01a567542c0620793b742c3e14eaf4eebbfeac97..2964fdb64dc9fe5fe5a9a9054d814bd6c0ed3b30 100644 (file)
@@ -36,9 +36,7 @@
 
 
 bool
-ebl_debugscn_p (ebl, name)
-     Ebl *ebl;
-     const char *name;
+ebl_debugscn_p (Ebl *ebl, const char *name)
 {
   return name != NULL && ebl->debugscn_p (name);
 }
index 17acee044bd702d6ccad82aa67b4fd34617d14f4..c2311ccdf7623418709dc2ff355a4cd370f9516b 100644 (file)
@@ -36,9 +36,7 @@
 
 
 bool
-ebl_dynamic_tag_check (ebl, tag)
-     Ebl *ebl;
-     int64_t tag;
+ebl_dynamic_tag_check (Ebl *ebl, int64_t tag)
 {
   bool res = ebl != NULL ? ebl->dynamic_tag_check (tag) : false;
 
index 6b09ee64aebfa233f0facc9c0d45610b91475579..3aaccd0d581db69ec2f3e77ce686e3758566b9f5 100644 (file)
 
 
 const char *
-ebl_dynamic_tag_name (ebl, tag, buf, len)
-     Ebl *ebl;
-     int64_t tag;
-     char *buf;
-     size_t len;
+ebl_dynamic_tag_name (Ebl *ebl, int64_t tag, char *buf, size_t len)
 {
   const char *res = ebl != NULL ? ebl->dynamic_tag_name (tag, buf, len) : NULL;
 
index 62d12836300a993e511dd30ca249e188f212c14e..2ffef30474c92a533da3ded40e1dbcf463aca1b5 100644 (file)
@@ -35,8 +35,7 @@
 
 
 int
-ebl_get_elfclass (ebl)
-     Ebl *ebl;
+ebl_get_elfclass (Ebl *ebl)
 {
   return ebl->class;
 }
index b09dbb5c7a403a71aba6582e92c259502ed7d531..072924b6fc95569b2537c080db031f7618357f1b 100644 (file)
@@ -35,8 +35,7 @@
 
 
 int
-ebl_get_elfdata (ebl)
-     Ebl *ebl;
+ebl_get_elfdata (Ebl *ebl)
 {
   return ebl->data;
 }
index cd961e7b715f542733784310b8e48dded33e847b..c2c86275e31e2fe078bae3b616b8fc460de35f02 100644 (file)
@@ -35,8 +35,7 @@
 
 
 int
-ebl_get_elfmachine (ebl)
-     Ebl *ebl;
+ebl_get_elfmachine (Ebl *ebl)
 {
   return ebl->machine;
 }
index 55625de3dbcde9f8856bf35ebbb53efe142323ac..7c9c079ce875f86f649cd22ad29750d316d08866 100644 (file)
@@ -36,9 +36,7 @@
 
 
 bool
-ebl_gotpc_reloc_check (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_gotpc_reloc_check (Ebl *ebl, int reloc)
 {
   return ebl != NULL ? ebl->gotpc_reloc_check (ebl->elf, reloc) : false;
 }
index d6d7931804163ef8bf31934cf38a93a19ffa7596..e98b600eee30c9c776ac0ecf426f0b79b34d056e 100644 (file)
@@ -35,9 +35,7 @@
 
 
 bool
-ebl_machine_flag_check (ebl, flags)
-     Ebl *ebl;
-     Elf64_Word flags;
+ebl_machine_flag_check (Ebl *ebl, Elf64_Word flags)
 {
   return ebl != NULL ? ebl->machine_flag_check (flags) : (flags == 0);
 }
index e392f5a40a232d0e9c38183c9ee67f85018594a0..6079a613f0d0989c0c130751cb6d45a7de17bb3b 100644 (file)
 
 
 const char *
-ebl_machine_flag_name (ebl, flags, buf, len)
-     Ebl *ebl;
-     Elf64_Word flags;
-     char *buf;
-     size_t len;
+ebl_machine_flag_name (Ebl *ebl, Elf64_Word flags, char *buf, size_t len)
 {
   const char *res;
 
index 671eb8c5e4b9c66262ae74f0ac8e1bb107858f3b..a73b230df749d860a824295557d1f0f2cadfce1f 100644 (file)
@@ -34,9 +34,7 @@
 
 
 bool
-ebl_machine_section_flag_check (ebl, flags)
-     Ebl *ebl;
-     GElf_Xword flags;
+ebl_machine_section_flag_check (Ebl *ebl, GElf_Xword flags)
 {
   return ebl != NULL ? ebl->machine_section_flag_check (flags) : (flags == 0);
 }
index 07c6b0e34d9ce19cd2baf58ed890b1f151d64e86..e51a3b001991c93ff407797533713dd48eee929d 100644 (file)
@@ -35,9 +35,7 @@
 
 
 bool
-ebl_none_reloc_p (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_none_reloc_p (Ebl *ebl, int reloc)
 {
   return ebl->none_reloc_p (reloc);
 }
index 1a2c8e87915f96265e57c13fbcc71d873d0917ce..b0fd3724f561300e1189e47a09feeb9f2a43bcc2 100644 (file)
 
 
 const char *
-ebl_object_type_name (ebl, object, buf, len)
-     Ebl *ebl;
-     int object;
-     char *buf;
-     size_t len;
+ebl_object_type_name (Ebl *ebl, int object, char *buf, size_t len)
 {
   const char *res;
 
index b9bf1c0b9b92b5769bc0542adbe0a934054ff62d..fa1eb93a066ca405253030340e87695dcc210965 100644 (file)
 
 
 void
-ebl_object_note (ebl, name, type, descsz, desc)
-     Ebl *ebl;
-     const char *name;
-     uint32_t type;
-     uint32_t descsz;
-     const char *desc;
+ebl_object_note (Ebl *ebl, const char *name, uint32_t type,
+                uint32_t descsz, const char *desc)
 {
   if (! ebl->object_note (name, type, descsz, desc))
     /* The machine specific function did not know this type.  */
index 8a70e61fc0c7a1c2475a0b3bd8ad18676176035e..8e2e329b84b9c64da5f878dc2be3b0e660bd4726 100644 (file)
 
 
 const char *
-ebl_object_note_type_name (ebl, name, type, buf, len)
-     Ebl *ebl;
-     const char *name;
-     uint32_t type;
-     char *buf;
-     size_t len;
+ebl_object_note_type_name (Ebl *ebl, const char *name, uint32_t type,
+                          char *buf, size_t len)
 {
   const char *res = ebl->object_note_type_name (name, type, buf, len);
 
index 02b24d3f2012971871dc3af56bf5d4a99a23f25f..b30140058f087c49d964503556bf15efe1261b22 100644 (file)
@@ -254,10 +254,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;
@@ -397,8 +394,7 @@ openbackend (elf, emulation, machine)
 
 /* Find an appropriate backend for the file associated with ELF.  */
 Ebl *
-ebl_openbackend (elf)
-     Elf *elf;
+ebl_openbackend (Elf *elf)
 {
   GElf_Ehdr ehdr_mem;
   GElf_Ehdr *ehdr;
index 3ea6f562d876f4c4445b569d4ef51b11996029d3..b60f2af4254252f12c540b9a8f0531e5ce553973 100644 (file)
 
 
 const char *
-ebl_osabi_name (ebl, osabi, buf, len)
-     Ebl *ebl;
-     int osabi;
-     char *buf;
-     size_t len;
+ebl_osabi_name (Ebl *ebl, int osabi, char *buf, size_t len)
 {
   const char *res = ebl != NULL ? ebl->osabi_name (osabi, buf, len) : NULL;
 
index f213b4a2c7c6245600c4723e1987b01ca6d86f16..acc484952aecb212d495b334da88fc0deaac0398 100644 (file)
 
 
 ssize_t
-ebl_register_info (ebl, regno, name, namelen, prefix, setname, bits, type)
-     Ebl *ebl;
-     int regno;
-     char *name;
-     size_t namelen;
-     const char **prefix;
-     const char **setname;
-     int *bits;
-     int *type;
+ebl_register_info (Ebl *ebl, int regno, char *name, size_t namelen,
+                  const char **prefix, const char **setname,
+                  int *bits, int *type)
 {
   return ebl == NULL ? -1 : ebl->register_info (ebl, regno, name, namelen,
                                                prefix, setname, bits, type);
index 297caec2b561cc8ef9695d09422c362428a7bc4e..51f5dce2125d18ceef6c81cfc192ccd3292e85f1 100644 (file)
@@ -35,9 +35,7 @@
 
 
 bool
-ebl_relative_reloc_p (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_relative_reloc_p (Ebl *ebl, int reloc)
 {
   return ebl->relative_reloc_p (reloc);
 }
index 085fc93116376171a1b097b13f0d38f0bd3220ee..9bd29285a3b0f033beebb77aee069aa5bd7c2452 100644 (file)
@@ -34,9 +34,7 @@
 
 
 Elf_Type
-ebl_reloc_simple_type (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_reloc_simple_type (Ebl *ebl, int reloc)
 {
   return ebl != NULL ? ebl->reloc_simple_type (ebl, reloc) : ELF_T_NUM;
 }
index e322ace026d6c6f9db745174727ae07baeabb01d..80e67ef766c416af620f2282063202d2b43c4a6e 100644 (file)
@@ -35,9 +35,7 @@
 
 
 bool
-ebl_reloc_type_check (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_reloc_type_check (Ebl *ebl, int reloc)
 {
   return ebl != NULL ? ebl->reloc_type_check (reloc) : false;
 }
index fb3910196d7e0d2e8873eb422712ee835e7c9e5f..e53ec0c09764fc8f0505ba0886a240af03a8b24c 100644 (file)
 
 
 const char *
-ebl_reloc_type_name (ebl, reloc, buf, len)
-     Ebl *ebl;
-     int reloc;
-     char *buf;
-     size_t len;
+ebl_reloc_type_name (Ebl *ebl, int reloc, char *buf, size_t len)
 {
   const char *res;
 
index 62c4ae7c84bf2a23d163e35e042e4aed9dc1f34f..f0bed34560dfd3b58682cd56511e61ba8c9bb9cc 100644 (file)
@@ -35,9 +35,7 @@
 
 
 bool
-ebl_reloc_valid_use (ebl, reloc)
-     Ebl *ebl;
-     int reloc;
+ebl_reloc_valid_use (Ebl *ebl, int reloc)
 {
   return ebl != NULL ? ebl->reloc_valid_use (ebl->elf, reloc) : false;
 }
index 056a54937a8ccbf5af87801d50ea29c89e06006a..7c039824425d9b0020667855cf569a993413b864 100644 (file)
 
 
 int
-ebl_return_value_location (ebl, functypedie, locops)
-     Ebl *ebl;
-     Dwarf_Die *functypedie;
-     const Dwarf_Op **locops;
+ebl_return_value_location (Ebl *ebl, Dwarf_Die *functypedie,
+                          const Dwarf_Op **locops)
 {
   return ebl == NULL ? -1 : ebl->return_value_location (functypedie, locops);
 }
index 81c7add5f84d4a061b4887607829cb3b5bcb0e1c..21c537fff90b66bb8493724e2a6954fd1b842641 100644 (file)
 
 
 const char *
-ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum)
-     Ebl *ebl;
-     int section;
-     int xsection;
-     char *buf;
-     size_t len;
-     const char *scnnames[];
-     size_t shnum;
+ebl_section_name (Ebl *ebl, int section, int xsection, char *buf, size_t len,
+                 const char *scnnames[], size_t shnum)
 {
   const char *res = ebl != NULL ? ebl->section_name (section, xsection,
                                                     buf, len) : NULL;
index 3a30cd63879eeaaf12d06a3d2dc94c3c45b0af0d..5dc1ec6d32fa6228abbbc4e295e0fd33236c802d 100644 (file)
 
 
 const char *
-ebl_section_type_name (ebl, section, buf, len)
-     Ebl *ebl;
-     int section;
-     char *buf;
-     size_t len;
+ebl_section_type_name (Ebl *ebl, int section, char *buf, size_t len)
 {
   const char *res = ebl->section_type_name (section, buf, len);
 
index 3cad66e17731bb6b36942913c19b7fcd618fcae2..14eda76e16c715f21318c19c2c95eb266b5a6e7e 100644 (file)
 
 
 const char *
-ebl_segment_type_name (ebl, segment, buf, len)
-     Ebl *ebl;
-     int segment;
-     char *buf;
-     size_t len;
+ebl_segment_type_name (Ebl *ebl, int segment, char *buf, size_t len)
 {
   const char *res;
 
index 87625f873355bed4239ccbdc034097a0abf8471e..4deaaaace94c150cb42f0b711e6be57ef952f44c 100644 (file)
 
 
 GElf_Word
-ebl_sh_flags_combine (ebl, flags1, flags2)
-     Ebl *ebl;
-     GElf_Word flags1;
-     GElf_Word flags2;
+ebl_sh_flags_combine (Ebl *ebl, GElf_Word flags1, GElf_Word flags2)
 {
   return ebl->sh_flags_combine (flags1, flags2);
 }
index fd5bfda588d7a83e77f10988cd966c229ec23075..97974253ae69e72d61db72661fcb358dedf54079 100644 (file)
 
 
 const char *
-ebl_symbol_binding_name (ebl, binding, buf, len)
-     Ebl *ebl;
-     int binding;
-     char *buf;
-     size_t len;
+ebl_symbol_binding_name (Ebl *ebl, int binding, char *buf, size_t len)
 {
   const char *res;
 
index 4e653d269603d8153e003c6fe8e5437890e5c5f5..09fa87480b9ea87392de7688751e0bc73c9d6df6 100644 (file)
 
 
 const char *
-ebl_symbol_type_name (ebl, symbol, buf, len)
-     Ebl *ebl;
-     int symbol;
-     char *buf;
-     size_t len;
+ebl_symbol_type_name (Ebl *ebl, int symbol, char *buf, size_t len)
 {
   const char *res;
 
index f966646aac279f64b7e2890ef98ad2123717a482..20494313ea1946de382c096d8c9c188d3d091860 100644 (file)
@@ -35,8 +35,7 @@
 
 
 int
-ebl_sysvhash_entrysize (ebl)
-     Ebl *ebl;
+ebl_sysvhash_entrysize (Ebl *ebl)
 {
   return ebl->sysvhash_entrysize;
 }
index 6fba0640a8d238ae9a37ac2b57a00d2225270b17..193d12674e0a9bae0fbb27a18dba609818470087 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * *.c: Remove old-style function definitions.
+
 2015-06-22  Mark Wielaard  <mjw@redhat.com>
 
        * dl-hash.h: Update from glibc.
index 4c5985630c0ad802dfa5e053a8a27748a31c9bdc..f9dfccb2c035033a20ec970c6edf48fc1e1d45bc 100644 (file)
@@ -1,5 +1,5 @@
 /* Compute simple checksum from permanent parts of the ELF file.
-   Copyright (C) 2002, 2003, 2004, 2005, 2009 Red Hat, Inc.
+   Copyright (C) 2002, 2003, 2004, 2005, 2009, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -51,8 +51,7 @@
 
 
 long int
-elfw2(LIBELFBITS,checksum) (elf)
-     Elf *elf;
+elfw2(LIBELFBITS,checksum) (Elf *elf)
 {
   size_t shstrndx;
   Elf_Scn *scn;
index d7496fa363ac6f6a6666dde39a4bbb8c002e1f9e..fddae91ed2ad13a43063ea47a5b51658839d3355 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the size of an object file type.
-   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 <drepper@redhat.com>, 1998.
 
 
 
 size_t
-elfw2(LIBELFBITS, fsize) (type, count, version)
-     Elf_Type type;
-     size_t count;
-     unsigned int version;
+elfw2(LIBELFBITS, fsize) (Elf_Type type, size_t count, unsigned int version)
 {
   /* We do not have differences between file and memory sizes.  Better
      not since otherwise `mmap' would not work.  */
index ee0a2e0ff68ab9b392cee9c5b08daa05049e6777..2b9ad1fa361db4730289add1e917124921495281 100644 (file)
@@ -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 <drepper@redhat.com>, 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)
index 38e489dc37b8e43d97819e41febd037080f9fe88..99b4ac09a85fe2c622d8d4a2344529226c3350ce 100644 (file)
@@ -1,5 +1,5 @@
 /* Get ELF program header table.
-   Copyright (C) 1998-2010, 2014 Red Hat, Inc.
+   Copyright (C) 1998-2010, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -46,8 +46,7 @@
 #endif
 
 ElfW2(LIBELFBITS,Phdr) *
-__elfw2(LIBELFBITS,getphdr_wrlock) (elf)
-     Elf *elf;
+__elfw2(LIBELFBITS,getphdr_wrlock) (Elf *elf)
 {
   ElfW2(LIBELFBITS,Phdr) *result;
 
@@ -237,8 +236,7 @@ __elfw2(LIBELFBITS,getphdr_wrlock) (elf)
 }
 
 ElfW2(LIBELFBITS,Phdr) *
-elfw2(LIBELFBITS,getphdr) (elf)
-     Elf *elf;
+elfw2(LIBELFBITS,getphdr) (Elf *elf)
 {
   ElfW2(LIBELFBITS,Phdr) *result;
 
index ee1aed8fccb6d9eca973e9227e4356f22a8420cc..a5fdb5478f6d97c754c0c4398200041a99d53d60 100644 (file)
@@ -1,5 +1,5 @@
 /* Return section header.
-   Copyright (C) 1998-2002, 2005, 2007, 2009, 2012, 2014 Red Hat, Inc.
+   Copyright (C) 1998-2002, 2005, 2007, 2009, 2012, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -243,8 +243,7 @@ scn_valid (Elf_Scn *scn)
 }
 
 ElfW2(LIBELFBITS,Shdr) *
-__elfw2(LIBELFBITS,getshdr_rdlock) (scn)
-     Elf_Scn *scn;
+__elfw2(LIBELFBITS,getshdr_rdlock) (Elf_Scn *scn)
 {
   ElfW2(LIBELFBITS,Shdr) *result;
 
@@ -265,8 +264,7 @@ __elfw2(LIBELFBITS,getshdr_rdlock) (scn)
 }
 
 ElfW2(LIBELFBITS,Shdr) *
-__elfw2(LIBELFBITS,getshdr_wrlock) (scn)
-     Elf_Scn *scn;
+__elfw2(LIBELFBITS,getshdr_wrlock) (Elf_Scn *scn)
 {
   ElfW2(LIBELFBITS,Shdr) *result;
 
@@ -281,8 +279,7 @@ __elfw2(LIBELFBITS,getshdr_wrlock) (scn)
 }
 
 ElfW2(LIBELFBITS,Shdr) *
-elfw2(LIBELFBITS,getshdr) (scn)
-     Elf_Scn *scn;
+elfw2(LIBELFBITS,getshdr) (Elf_Scn *scn)
 {
   ElfW2(LIBELFBITS,Shdr) *result;
 
index 4b547bcc2c181c0d5c5e6cfeda33fbee564f6594..775d11572f90fbfcaa13c1d1720330dd025d04df 100644 (file)
@@ -1,5 +1,5 @@
 /* Create new 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 <drepper@redhat.com>, 1998.
 
@@ -42,8 +42,7 @@
 
 
 ElfW2(LIBELFBITS,Ehdr) *
-elfw2(LIBELFBITS,newehdr) (elf)
-     Elf *elf;
+elfw2(LIBELFBITS,newehdr) (Elf *elf)
 {
   ElfW2(LIBELFBITS,Ehdr) *result;
 
index f89153b46a1385b4b0158055e406922cdea98d45..4aa72137b1014e83f9e8b79b8fe25bfaaa3d884d 100644 (file)
@@ -1,5 +1,5 @@
 /* Create new ELF program header table.
-   Copyright (C) 1999-2010, 2014 Red Hat, Inc.
+   Copyright (C) 1999-2010, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -43,9 +43,7 @@
 
 
 ElfW2(LIBELFBITS,Phdr) *
-elfw2(LIBELFBITS,newphdr) (elf, count)
-     Elf *elf;
-     size_t count;
+elfw2(LIBELFBITS,newphdr) (Elf *elf, size_t count)
 {
   ElfW2(LIBELFBITS,Phdr) *result;
 
index a1ff6d40b7412bcbbc120c8cd218a44e02e9bdf3..9e757c840948549bafdb632e29d3dba83d5b2241 100644 (file)
@@ -1,5 +1,5 @@
 /* Get section at specific index.
-   Copyright (C) 2005, 2008 Red Hat, Inc.
+   Copyright (C) 2005, 2008, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2005.
 
@@ -43,9 +43,7 @@
 
 
 Elf_Scn *
-elfw2(LIBELFBITS,offscn) (elf, offset)
-     Elf *elf;
-     ElfW2(LIBELFBITS,Off) offset;
+elfw2(LIBELFBITS,offscn) (Elf *elf, ElfW2(LIBELFBITS,Off) offset)
 {
   if (elf == NULL)
     return NULL;
index 27a973ecaf8faf0cf8d714a133a53ef9727d48b1..ac4eaf400c1eaaa7f6861e701128360ace4c3a4f 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert from memory to file representation.
-   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 <drepper@redhat.com>, 1998.
 
 
 
 Elf_Data *
-elfw2(LIBELFBITS, xlatetof) (dest, src, encode)
-     Elf_Data *dest;
-     const Elf_Data *src;
-     unsigned int encode;
+elfw2(LIBELFBITS, xlatetof) (Elf_Data *dest, const Elf_Data *src,
+                            unsigned int encode)
 {
   /* First test whether the input data is really suitable for this
      type.  This means, whether there is an integer number of records.
index 368df078eac2c88ce1a44ebb02fd95251bb976e2..13cd485dba0c579c7ccaa7733e493c36084ff779 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert from file to memory representation.
-   Copyright (C) 1998, 1999, 2000, 2002, 2012 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2002, 2012, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
 
 
 Elf_Data *
-elfw2(LIBELFBITS, xlatetom) (dest, src, encode)
-     Elf_Data *dest;
-     const Elf_Data *src;
-     unsigned int encode;
+elfw2(LIBELFBITS, xlatetom) (Elf_Data *dest, const Elf_Data *src,
+                            unsigned int encode)
 {
   /* First test whether the input data is really suitable for this
      type.  This means, whether there is an integer number of records.
index f002ebf0b6defa26cca8b689f59518d14ca36331..213b5c0bbeba0aa38aa5cbd68b36f559c6305c64 100644 (file)
@@ -775,8 +775,7 @@ read_long_names (Elf *elf)
 /* Read the next archive header.  */
 int
 internal_function
-__libelf_next_arhdr_wrlock (elf)
-     Elf *elf;
+__libelf_next_arhdr_wrlock (Elf *elf)
 {
   struct ar_hdr *ar_hdr;
   Elf_Arhdr *elf_ar_hdr;
@@ -1043,10 +1042,7 @@ write_file (int fd, Elf_Cmd cmd)
 
 /* Return a descriptor for the file belonging to FILDES.  */
 Elf *
-elf_begin (fildes, cmd, ref)
-     int fildes;
-     Elf_Cmd cmd;
-     Elf *ref;
+elf_begin (int fildes, Elf_Cmd cmd, Elf *ref)
 {
   Elf *retval;
 
@@ -1067,7 +1063,7 @@ elf_begin (fildes, cmd, ref)
       return NULL;
     }
 
-  Elf *lock_dup_elf ()
+  Elf *lock_dup_elf (void)
   {
     /* We need wrlock to dup an archive.  */
     if (ref->kind == ELF_K_AR)
index a3c58051b1fb2a22ea690e49b5b57358de1dc7fa..ab13ffb6da91df27cc4fb5a0df05bafe9c11b992 100644 (file)
@@ -1,5 +1,5 @@
 /* Control an ELF file desrciptor.
-   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 <drepper@redhat.com>, 1998.
 
@@ -37,9 +37,7 @@
 
 
 int
-elf_cntl (elf, cmd)
-     Elf *elf;
-     Elf_Cmd cmd;
+elf_cntl (Elf *elf, Elf_Cmd cmd)
 {
   int result = 0;
 
index d4ae051755c3825b948a8a957cf0cf19b9bf1d2d..7ea876c32ab0c980b3c517bbe4c822f47b0eb1ce 100644 (file)
@@ -1,5 +1,5 @@
 /* Free resources associated with Elf descriptor.
-   Copyright (C) 1998,1999,2000,2001,2002,2004,2005,2007 Red Hat, Inc.
+   Copyright (C) 1998,1999,2000,2001,2002,2004,2005,2007,2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -40,8 +40,7 @@
 
 
 int
-elf_end (elf)
-     Elf *elf;
+elf_end (Elf *elf)
 {
   Elf *parent;
 
index aa7f917350106a0e0756aae5f2d354fc936be41f..d6e5183f7f3a58ef814072414ba9ce0c8ad45eea 100644 (file)
@@ -1,5 +1,5 @@
 /* Error handling in libelf.
-   Copyright (C) 1998-2010 Red Hat, Inc.
+   Copyright (C) 1998-2010, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -283,16 +283,14 @@ static const uint_fast16_t msgidx[ELF_E_NUM] =
 
 
 void
-__libelf_seterrno (value)
-     int value;
+__libelf_seterrno (int value)
 {
   global_error = value >= 0 && value < nmsgidx ? value : ELF_E_UNKNOWN_ERROR;
 }
 
 
 const char *
-elf_errmsg (error)
-     int error;
+elf_errmsg (int error)
 {
   int last_error = global_error;
 
index 174ab45c42967f0f11693eb6a8d9ae4108576b4e..6ebdf63a4856a19f6f9f678e5bba4371e8abb643 100644 (file)
@@ -1,5 +1,5 @@
 /* Set fill byte used when constructing ELF objects.
-   Copyright (C) 1998, 2000, 2002 Red Hat, Inc.
+   Copyright (C) 1998, 2000, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -40,8 +40,7 @@ int __libelf_fill_byte;
 
 
 void
-elf_fill (fill)
-     int fill;
+elf_fill (int fill)
 {
   __libelf_fill_byte = fill;
 }
index ace8cc521a30aea5ec702218b4b1e30106e0b664..cd2b1237504db3ed5cfc7686c14e02d15c55786e 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulate ELF data flag.
-   Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
 
 
 unsigned int
-elf_flagdata (data, cmd, flags)
-     Elf_Data *data;
-     Elf_Cmd cmd;
-     unsigned int flags;
+elf_flagdata (Elf_Data *data, Elf_Cmd cmd, unsigned int flags)
 {
   Elf_Data_Scn *data_scn;
   unsigned int result;
index d3a320b9ab3c67ea9bf40469d6ba3d4123652669..a98276d5b78955b05c91e7fc96e8a174efb74225 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulate ELF header flags.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 unsigned int
-elf_flagehdr (elf, cmd, flags)
-     Elf *elf;
-     Elf_Cmd cmd;
-     unsigned int flags;
+elf_flagehdr (Elf *elf, Elf_Cmd cmd, unsigned int flags)
 {
   unsigned int result;
 
index b34bd4f8074365a761851610c5751b8c1664ba6a..bd90a21fa9492b606e307e02a432c09284e38d05 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulate ELF file flags.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 unsigned int
-elf_flagelf (elf, cmd, flags)
-     Elf *elf;
-     Elf_Cmd cmd;
-     unsigned int flags;
+elf_flagelf (Elf *elf, Elf_Cmd cmd, unsigned int flags)
 {
   unsigned int result;
 
index 2a589cc9fa83ac9a14ad24263b981b481c32c647..0682d1f4d9319166d9854b1d061be11109df1136 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulate ELF program header flags.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 unsigned int
-elf_flagphdr (elf, cmd, flags)
-     Elf *elf;
-     Elf_Cmd cmd;
-     unsigned int flags;
+elf_flagphdr (Elf *elf, Elf_Cmd cmd, unsigned int flags)
 {
   unsigned int result;
 
index 3ff826c6178c7bd988cc7d36a7083dd77843784a..2164a8c9b6991e1acb6691b744d089db5a21c897 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulate ELF section flags.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 unsigned int
-elf_flagscn (scn, cmd, flags)
-     Elf_Scn *scn;
-     Elf_Cmd cmd;
-     unsigned int flags;
+elf_flagscn (Elf_Scn *scn, Elf_Cmd cmd, unsigned int flags)
 {
   unsigned int result;
 
index 8d797af61ec3dc01a2734e45f2b9e098e105ad87..febf4abf2a0218e31764e4c0000efb0d9f46d1a6 100644 (file)
@@ -1,5 +1,5 @@
 /* Manipulate ELF section header flags.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 unsigned int
-elf_flagshdr (scn, cmd, flags)
-     Elf_Scn *scn;
-     Elf_Cmd cmd;
-     unsigned int flags;
+elf_flagshdr (Elf_Scn *scn, Elf_Cmd cmd, unsigned int flags)
 {
   unsigned int result;
 
index f8b36b8b06d9bce4756f7fe8669fd5197eec05ae..509f1da5b4eeab54ea80b20afd9bc981e0f2e868 100644 (file)
@@ -1,5 +1,5 @@
 /* Read header of next archive member.
-   Copyright (C) 1998, 1999, 2000, 2002, 2008 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2002, 2008, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -39,8 +39,7 @@
 
 
 Elf_Arhdr *
-elf_getarhdr (elf)
-     Elf *elf;
+elf_getarhdr (Elf *elf)
 {
   if (elf == NULL)
     return NULL;
index 62da34dffab816f27267e9e88c2a0e06c4725786..5b59203ff9fd51eac3156659f27d449ce643ef6e 100644 (file)
@@ -1,5 +1,5 @@
 /* Return offset in archive for current file ELF.
-   Copyright (C) 2005, 2008 Red Hat, Inc.
+   Copyright (C) 2005, 2008, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2005.
 
@@ -39,8 +39,7 @@
 
 
 off_t
-elf_getaroff (elf)
-     Elf *elf;
+elf_getaroff (Elf *elf)
 {
   /* Be gratious, the specs demand it.  */
   if (elf == NULL || elf->parent == NULL)
index 832424410d48bc8ba74488467ded2ee5a3c2c9df..1ab94ca89ef14fc1fa42aedae3ebc9ecb7861bd8 100644 (file)
@@ -74,9 +74,7 @@ read_number_entries (uint64_t *nump, Elf *elf, size_t *offp, bool index64_p)
 }
 
 Elf_Arsym *
-elf_getarsym (elf, ptr)
-     Elf *elf;
-     size_t *ptr;
+elf_getarsym (Elf *elf, size_t *ptr)
 {
   if (elf->kind != ELF_K_AR)
     {
index ff0feb40008add12e7534a3f4563813a52cb3ae2..8ec5f87e02dc4ee4e03fce88b421f822e34cf15c 100644 (file)
@@ -1,5 +1,5 @@
 /* Return offset of first byte for the object.
-   Copyright (C) 1998, 2000, 2002 Red Hat, Inc.
+   Copyright (C) 1998, 2000, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -38,8 +38,7 @@
 
 
 off_t
-elf_getbase (elf)
-     Elf *elf;
+elf_getbase (Elf *elf)
 {
   return elf == NULL ? (off_t) -1 : elf->start_offset;
 }
index 770e035504053e6c6ec87aa2df99939d3fa4463c..9a567e5138b3ee28848fa001c359226a6956057a 100644 (file)
@@ -422,9 +422,7 @@ __libelf_set_data_list_rdlock (Elf_Scn *scn, int wrlocked)
 
 Elf_Data *
 internal_function
-__elf_getdata_rdlock (scn, data)
-     Elf_Scn *scn;
-     Elf_Data *data;
+__elf_getdata_rdlock (Elf_Scn *scn, Elf_Data *data)
 {
   Elf_Data *result = NULL;
   Elf *elf;
@@ -520,9 +518,7 @@ __elf_getdata_rdlock (scn, data)
 }
 
 Elf_Data *
-elf_getdata (scn, data)
-     Elf_Scn *scn;
-     Elf_Data *data;
+elf_getdata (Elf_Scn *scn, Elf_Data *data)
 {
   Elf_Data *result;
 
index 5cc11e7026ad73458baf7a6e84e1bdb2a38ac8fb..51b3e3e745eb2afb8e0c2f028253cdcba07ead75 100644 (file)
@@ -1,5 +1,5 @@
 /* Return converted data from raw chunk of ELF file.
-   Copyright (C) 2007, 2014 Red Hat, Inc.
+   Copyright (C) 2007, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
 #include "common.h"
 
 Elf_Data *
-elf_getdata_rawchunk (elf, offset, size, type)
-     Elf *elf;
-     off64_t offset;
-     size_t size;
-     Elf_Type type;
+elf_getdata_rawchunk (Elf *elf, off64_t offset, size_t size, Elf_Type type)
 {
   if (unlikely (elf == NULL))
     return NULL;
index 10beeafd4bf72cceabd350be63e83d702feeba13..5abf8c9446b7fbebdecae2c02756080ee63e5db2 100644 (file)
@@ -1,5 +1,5 @@
 /* Retrieve file identification data.
-   Copyright (C) 1998, 1999, 2000, 2002, 2004 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2002, 2004, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -37,9 +37,7 @@
 
 
 char *
-elf_getident (elf, ptr)
-     Elf *elf;
-     size_t *ptr;
+elf_getident (Elf *elf, size_t *ptr)
 {
   /* In case this is no ELF file, the handle is invalid and we return
      NULL.  */
index f2fad87a4e37b5b086202078405b196ebc44169a..fe70345d5fcbf17370107a11977fd35169ca9f9f 100644 (file)
@@ -1,5 +1,5 @@
 /* Return number of program headers in the ELF file.
-   Copyright (C) 2010, 2014 Red Hat, Inc.
+   Copyright (C) 2010, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
@@ -38,9 +38,7 @@
 
 
 int
-__elf_getphdrnum_rdlock (elf, dst)
-     Elf *elf;
-     size_t *dst;
+__elf_getphdrnum_rdlock (Elf *elf, size_t *dst)
 {
  if (unlikely (elf->state.elf64.ehdr == NULL))
    {
@@ -80,9 +78,7 @@ __elf_getphdrnum_rdlock (elf, dst)
 }
 
 int
-__elf_getphdrnum_chk_rdlock (elf, dst)
-     Elf *elf;
-     size_t *dst;
+__elf_getphdrnum_chk_rdlock (Elf *elf, size_t *dst)
 {
   int result = __elf_getphdrnum_rdlock (elf, dst);
 
@@ -119,9 +115,7 @@ __elf_getphdrnum_chk_rdlock (elf, dst)
 }
 
 int
-elf_getphdrnum (elf, dst)
-     Elf *elf;
-     size_t *dst;
+elf_getphdrnum (Elf *elf, size_t *dst)
 {
   int result;
 
index 7c6b7deeb561e59525774e3fac112c2130f51dd4..9f7213b46f4f0cc858313ca23600b6da0c96b7db 100644 (file)
@@ -1,5 +1,5 @@
 /* Get section at specific index.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2004, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -39,9 +39,7 @@
 
 
 Elf_Scn *
-elf_getscn (elf, idx)
-     Elf *elf;
-     size_t idx;
+elf_getscn (Elf *elf, size_t idx)
 {
   if (elf == NULL)
     return NULL;
index 73a3300df9a6651ca0bc1e8e3453cbfe4cd88d46..4875c199eaa29b1b86864ea767452efe8a9e867d 100644 (file)
@@ -1,5 +1,5 @@
 /* Return number of sections in the ELF file.
-   Copyright (C) 2002, 2009 Red Hat, Inc.
+   Copyright (C) 2002, 2009, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -39,9 +39,7 @@
 
 
 int
-__elf_getshdrnum_rdlock (elf, dst)
-     Elf *elf;
-     size_t *dst;
+__elf_getshdrnum_rdlock (Elf *elf, size_t *dst)
 {
   int result = 0;
   int idx;
@@ -71,9 +69,7 @@ __elf_getshdrnum_rdlock (elf, dst)
 }
 
 int
-elf_getshdrnum (elf, dst)
-     Elf *elf;
-     size_t *dst;
+elf_getshdrnum (Elf *elf, size_t *dst)
 {
   int result;
 
index 6f8d66e8065210b027a91fb05ecf2d5a3ce64b33..aead2fe50dc8de6dd7682c5a8753353111569e05 100644 (file)
@@ -1,5 +1,5 @@
 /* Return section index of section header string table.
-   Copyright (C) 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -43,9 +43,7 @@
 
 
 int
-elf_getshdrstrndx (elf, dst)
-     Elf *elf;
-     size_t *dst;
+elf_getshdrstrndx (Elf *elf, size_t *dst)
 {
   int result = 0;
 
index 4c21857f95a585467f6b3fb9bee88a191c9e81cb..5a1b852377aee46a1648aa38db9daf958bcfb847 100644 (file)
@@ -1,5 +1,5 @@
 /* GNU-style Hash function used in ELF implementations.
-   Copyright (C) 2006 Red Hat, Inc.
+   Copyright (C) 2006, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2006.
 
@@ -37,8 +37,7 @@
 #include <dl-hash.h>
 
 unsigned long int
-elf_gnu_hash (string)
-     const char *string;
+elf_gnu_hash (const char *string)
 {
   uint_fast32_t h = 5381;
   for (unsigned char c = *string; c != '\0'; c = *++string)
index 306ebc2c5f7a2ad40b33093b2b8d255d4f0cbfe0..345697e11d35b77328ca72505f59c9554ccc1bda 100644 (file)
@@ -1,5 +1,5 @@
 /* Hash function used in ELF implementations.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -37,8 +37,7 @@
 #include <dl-hash.h>
 
 unsigned long int
-elf_hash (string)
-     const char *string;
+elf_hash (const char *string)
 {
   return _dl_elf_hash (string);
 }
index d8ab2fddf426d540f060b46bb523bd0fa9bfe629..0fb3f0c2914e3568d21682b0f9de764f39b2fe57 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the kind of file associated with the descriptor.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -38,8 +38,7 @@
 
 
 Elf_Kind
-elf_kind (elf)
-     Elf *elf;
+elf_kind (Elf *elf)
 {
   return elf == NULL ? ELF_K_NONE : elf->kind;
 }
index 08f85a12e7be811c3c7d337a1bb3df8aaeb4ef47..a47f1d241ae6d670e8d6c58096a76953aa7a2e4a 100644 (file)
@@ -1,5 +1,5 @@
 /* Create descriptor for memory region.
-   Copyright (C) 1999, 2000, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1999.
 
@@ -38,9 +38,7 @@
 
 
 Elf *
-elf_memory (image, size)
-     char *image;
-     size_t size;
+elf_memory (char *image, size_t size)
 {
   if (image == NULL)
     {
index bd4bfbfd7fa8e2581d3ab261ee4e0cf2979e98ed..488c4e5f5770f88b8701588796570f6cc25c2765 100644 (file)
@@ -1,5 +1,5 @@
 /* Get index of section.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -38,8 +38,7 @@
 
 
 size_t
-elf_ndxscn (scn)
-     Elf_Scn *scn;
+elf_ndxscn (Elf_Scn *scn)
 {
   if (scn == NULL)
     return SHN_UNDEF;
index 6e0029ed02342eb6f3b19151fefa79a8ea771852..d15a642e162ddffc19f66d131c02c093e3edc5ef 100644 (file)
@@ -1,5 +1,5 @@
 /* Append new section.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 1998,1999,2000,2001,2002,2005,2009,2014,2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -41,8 +41,7 @@
 
 
 Elf_Scn *
-elf_newscn (elf)
-     Elf *elf;
+elf_newscn (Elf *elf)
 {
   Elf_Scn *result = NULL;
   bool first = false;
index 1f5c03c16e5abfd91821faf19b6d5a4d4c5fd559..6edafd2e924d5088d492ae94493af6568d14227c 100644 (file)
@@ -1,5 +1,5 @@
 /* Advance in archive to next element.
-   Copyright (C) 1998-2009 Red Hat, Inc.
+   Copyright (C) 1998-2009, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -39,8 +39,7 @@
 
 
 Elf_Cmd
-elf_next (elf)
-     Elf *elf;
+elf_next (Elf *elf)
 {
   Elf *parent;
   Elf_Cmd ret;
index 0d2bd666d767a099d1c3ad69af75b9bc683267e9..62cb8914c74207847e63d45ff473deee8f7a3d20 100644 (file)
@@ -1,5 +1,5 @@
 /* Get next section.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -39,9 +39,7 @@
 
 
 Elf_Scn *
-elf_nextscn (elf, scn)
-     Elf *elf;
-     Elf_Scn *scn;
+elf_nextscn (Elf *elf, Elf_Scn *scn)
 {
   Elf_Scn *result = NULL;
 
index cef4e448fdfb7f290e7a801b5a85838c5ba26430..f1850e7bdbbc63bfb6243503f3bedbba4b2df9e2 100644 (file)
@@ -1,5 +1,5 @@
 /* Select specific element in archive.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -38,9 +38,7 @@
 
 
 size_t
-elf_rand (elf, offset)
-     Elf *elf;
-     size_t offset;
+elf_rand (Elf *elf, size_t offset)
 {
   /* Be gratious, the specs demand it.  */
   if (elf == NULL || elf->kind != ELF_K_AR)
index 9672652ca5e91451231b0abfdda702ea5eff0ad8..db28f5dc686ffbf2c652ef993689832f9bf24d83 100644 (file)
@@ -1,5 +1,5 @@
 /* Return raw section content.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -37,9 +37,7 @@
 
 
 Elf_Data *
-elf_rawdata (scn, data)
-     Elf_Scn *scn;
-     Elf_Data *data;
+elf_rawdata (Elf_Scn *scn, Elf_Data *data)
 {
   if (scn == NULL || scn->elf->kind != ELF_K_ELF)
     {
index dd71b88bf34105fa902ee86f6da294c9590991ae..b3837f4f07a366fe4485ecc4244ee2c21a247d42 100644 (file)
@@ -1,5 +1,5 @@
 /* Retrieve uninterpreted file contents.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -38,9 +38,7 @@
 
 
 char *
-elf_rawfile (elf, ptr)
-     Elf *elf;
-     size_t *ptr;
+elf_rawfile (Elf *elf, size_t *ptr)
 {
   char *result;
 
index 0101618826d0df7a6adf9a6e00d86e61fa49427e..52a0b4e54b907bff54c3aaf57cd3c8b914e9de28 100644 (file)
@@ -1,5 +1,5 @@
 /* Read all of the file associated with the descriptor.
-   Copyright (C) 1998-2009 Red Hat, Inc.
+   Copyright (C) 1998-2009, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -66,8 +66,7 @@ set_address (Elf *elf, size_t offset)
 
 
 char *
-__libelf_readall (elf)
-     Elf *elf;
+__libelf_readall (Elf *elf)
 {
   /* Get the file.  */
   rwlock_wrlock (elf->lock);
index e73bf3605fb2423a1e797e7e3905640e0f0b4c08..c5138dc65406f27f611e0829f154dbb981e3055e 100644 (file)
 
 
 char *
-elf_strptr (elf, idx, offset)
-     Elf *elf;
-     size_t idx;
-     size_t offset;
+elf_strptr (Elf *elf, size_t idx, size_t offset)
 {
   if (elf == NULL)
     return NULL;
index 9eb007bde30e103dbc9a509de04a7c39cb62c89d..00f7a0105e0691137120be85e411d3a49330b452 100644 (file)
@@ -137,9 +137,7 @@ write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
 
 
 off_t
-elf_update (elf, cmd)
-     Elf *elf;
-     Elf_Cmd cmd;
+elf_update (Elf *elf, Elf_Cmd cmd)
 {
   size_t shnum;
   off_t size;
index dcb67580c36ed866e04d8277ce529173fbf59517..7c336ff92587526888a3493cc2ab13f2558b71c4 100644 (file)
@@ -1,5 +1,5 @@
 /* Coordinate ELF library and application versions.
-   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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -42,8 +42,7 @@ unsigned int __libelf_version = EV_CURRENT;
 
 
 unsigned int
-elf_version (version)
-     unsigned int version;
+elf_version (unsigned int version)
 {
   if (version == EV_NONE)
     return __libelf_version;
index 49067829cae23019693b2426890e9f05267cd9dd..831c54cbf9464166d892cb931882051e0059f1f1 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert from file to memory representation.  Generic ELF version.
-   Copyright (C) 2002 Red Hat, Inc.
+   Copyright (C) 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -38,8 +38,7 @@
 
 
 long int
-gelf_checksum (elf)
-     Elf *elf;
+gelf_checksum (Elf *elf)
 {
   if (elf == NULL)
     return -1l;
index a9d2288d8d8690284b09ab1bd39025217dd8c4da..a124fa840b301d1dbc328c1a76456c5a06802182 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the size of an object file type.
-   Copyright (C) 1998-2010 Red Hat, Inc.
+   Copyright (C) 1998-2010, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -79,11 +79,7 @@ const size_t __libelf_type_sizes[EV_NUM - 1][ELFCLASSNUM - 1][ELF_T_NUM] =
 
 
 size_t
-gelf_fsize (elf, type, count, version)
-     Elf *elf;
-     Elf_Type type;
-     size_t count;
-     unsigned int version;
+gelf_fsize (Elf *elf, Elf_Type type, size_t count, unsigned int version)
 {
   /* We do not have differences between file and memory sizes.  Better
      not since otherwise `mmap' would not work.  */
index a2f04e7f0e6b2bf97625a48a024c81b50c4c9c5b..1591be2a5686a0ea7d57b1a8516b2e1bfc8a9bee 100644 (file)
@@ -1,5 +1,5 @@
 /* Get information from auxiliary vector at the given index.
-   Copyright (C) 2007 Red Hat, Inc.
+   Copyright (C) 2007, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
 
 
 GElf_auxv_t *
-gelf_getauxv (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_auxv_t *dst;
+gelf_getauxv (Elf_Data *data, int ndx, GElf_auxv_t *dst)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   GElf_auxv_t *result = NULL;
index 53759dc38ec040846937b3f720be732229dc63f7..7d0924bdc860fda2330eb6868b3b89622a7cb2ce 100644 (file)
@@ -1,5 +1,5 @@
 /* Return the class of file associated with the descriptor.
-   Copyright (C) 1999, 2000, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
@@ -38,8 +38,7 @@
 
 
 int
-gelf_getclass (elf)
-     Elf *elf;
+gelf_getclass (Elf *elf)
 {
   return elf == NULL || elf->kind != ELF_K_ELF ? ELFCLASSNONE : elf->class;
 }
index c366fd5df72d7e3b033e51dc0c76903cbbc09a0b..a0090e147d54e708ed2ea496d54cfb6cfa121ce2 100644 (file)
@@ -1,5 +1,5 @@
 /* Get information from dynamic table at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 GElf_Dyn *
-gelf_getdyn (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Dyn *dst;
+gelf_getdyn (Elf_Data *data, int ndx, GElf_Dyn *dst)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   GElf_Dyn *result = NULL;
index ea83fc04513402c86e68948dae4c597390006baf..cace0ef62f0fe67f5e89b197be71fc4a15ffd1fb 100644 (file)
@@ -1,5 +1,5 @@
 /* Get ELF header.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2005, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -40,9 +40,7 @@
 
 
 GElf_Ehdr *
-__gelf_getehdr_rdlock (elf, dest)
-     Elf *elf;
-     GElf_Ehdr *dest;
+__gelf_getehdr_rdlock (Elf *elf, GElf_Ehdr *dest)
 {
   GElf_Ehdr *result = NULL;
 
@@ -95,9 +93,7 @@ __gelf_getehdr_rdlock (elf, dest)
 }
 
 GElf_Ehdr *
-gelf_getehdr (elf, dest)
-     Elf *elf;
-     GElf_Ehdr *dest;
+gelf_getehdr (Elf *elf, GElf_Ehdr *dest)
 {
   GElf_Ehdr *result;
   if (elf == NULL)
index 880817e65556849ade7523de1789c1010785c37e..a8ac47850c5b61858fa04d40fa6859621e497474 100644 (file)
@@ -1,5 +1,5 @@
 /* Get library from table at the given index.
-   Copyright (C) 2004, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2004, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2004.
 
 
 
 GElf_Lib *
-gelf_getlib (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Lib *dst;
+gelf_getlib (Elf_Data *data, int ndx, GElf_Lib *dst)
 {
   if (data == NULL)
     return NULL;
index b81d61f4c7416c848c93fe96b92614dccc4087e2..18efedccc9da65f273811996ce69d5cea48fe834 100644 (file)
@@ -1,5 +1,5 @@
 /* Get move structure at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 GElf_Move *
-gelf_getmove (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Move *dst;
+gelf_getmove (Elf_Data *data, int ndx, GElf_Move *dst)
 {
   GElf_Move *result = NULL;
   Elf *elf;
index 7dc8215674e5844c93276cffddd6f0449d60fdb7..c75eddabb501324d1f6dd3967993edad913551f0 100644 (file)
@@ -1,5 +1,5 @@
 /* Get note information at the supplied offset.
-   Copyright (C) 2007, 2014 Red Hat, Inc.
+   Copyright (C) 2007, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
 #include "libelfP.h"
 
 size_t
-gelf_getnote (data, offset, result, name_offset, desc_offset)
-     Elf_Data *data;
-     size_t offset;
-     GElf_Nhdr *result;
-     size_t *name_offset;
-     size_t *desc_offset;
+gelf_getnote (Elf_Data *data, size_t offset, GElf_Nhdr *result,
+             size_t *name_offset, size_t *desc_offset)
 {
   if (data == NULL)
     return 0;
index 1a6ee62fcce4a0f9142eccb22730d459f5ca3021..c719e4be6966469d716b88019df1f914458c60a9 100644 (file)
@@ -1,5 +1,5 @@
 /* Return program header table entry.
-   Copyright (C) 1998-2010 Red Hat, Inc.
+   Copyright (C) 1998-2010, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
 
 
 GElf_Phdr *
-gelf_getphdr (elf, ndx, dst)
-     Elf *elf;
-     int ndx;
-     GElf_Phdr *dst;
+gelf_getphdr (Elf *elf, int ndx, GElf_Phdr *dst)
 {
   GElf_Phdr *result = NULL;
 
index 1f786ff5b38c31f5f1e4b3552c73c142ee6e8dfc..309e3d37457bf0209c2cfc494d04efa859dcded2 100644 (file)
@@ -1,5 +1,5 @@
 /* Get REL relocation information at given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 GElf_Rel *
-gelf_getrel (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Rel *dst;
+gelf_getrel (Elf_Data *data, int ndx, GElf_Rel *dst)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index cead7eeecd13e3a739f43091f73debaff3d6d90a..d695f6593dc4225da85c37a4959f3b6a28ff8de8 100644 (file)
@@ -1,5 +1,5 @@
 /* Get RELA relocation information at given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 GElf_Rela *
-gelf_getrela (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Rela *dst;
+gelf_getrela (Elf_Data *data, int ndx, GElf_Rela *dst)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index 4a48cb6c510e82a4b178759ac6b22a398ecc58c8..3858c8e131ed149372e496283593587137908dd8 100644 (file)
@@ -1,5 +1,5 @@
 /* Return section 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 <drepper@redhat.com>, 1998.
 
@@ -38,9 +38,7 @@
 
 
 GElf_Shdr *
-gelf_getshdr (scn, dst)
-     Elf_Scn *scn;
-     GElf_Shdr *dst;
+gelf_getshdr (Elf_Scn *scn, GElf_Shdr *dst)
 {
   GElf_Shdr *result = NULL;
 
index a141c2d58a37e838f1c03416f62706c5392b1bab..01534d2ce8fd7bf15a5554c4b195eb957d8a79cf 100644 (file)
@@ -1,5 +1,5 @@
 /* Get symbol information from symbol table at the given index.
-   Copyright (C) 1999, 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 GElf_Sym *
-gelf_getsym (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Sym *dst;
+gelf_getsym (Elf_Data *data, int ndx, GElf_Sym *dst)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   GElf_Sym *result = NULL;
index 8d7da7f23b73db1ebaace9e3f9d0d87b175a510f..8360ed387ad0ec81c5fe3e95247e1c509b0e27e6 100644 (file)
@@ -1,5 +1,5 @@
 /* Get additional symbol information from symbol table at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 GElf_Syminfo *
-gelf_getsyminfo (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Syminfo *dst;
+gelf_getsyminfo (Elf_Data *data, int ndx, GElf_Syminfo *dst)
 {
   GElf_Syminfo *result = NULL;
 
index c19e87616f5953ae3b76c5be1af825c9eab29262..17c90fc6d0825b6c82feb72e80a0b6f556b42702 100644 (file)
@@ -1,6 +1,6 @@
 /* Get symbol information and separate section index from symbol table
    at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 GElf_Sym *
-gelf_getsymshndx (symdata, shndxdata, ndx, dst, dstshndx)
-     Elf_Data *symdata;
-     Elf_Data *shndxdata;
-     int ndx;
-     GElf_Sym *dst;
-     Elf32_Word *dstshndx;
+gelf_getsymshndx (Elf_Data *symdata, Elf_Data *shndxdata, int ndx,
+                 GElf_Sym *dst, Elf32_Word *dstshndx)
 {
   Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata;
   Elf_Data_Scn *shndxdata_scn = (Elf_Data_Scn *) shndxdata;
index d125d9ea1d741f2c73ffc4a66e774c4862f57dcc..739a7657d8507190af67fa8d236d8d4135ad0bdb 100644 (file)
@@ -1,5 +1,5 @@
 /* Get additional symbol version definition information at the given offset.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 GElf_Verdaux *
-gelf_getverdaux (data, offset, dst)
-     Elf_Data *data;
-     int offset;
-     GElf_Verdaux *dst;
+gelf_getverdaux (Elf_Data *data, int offset, GElf_Verdaux *dst)
 {
   GElf_Verdaux *result;
 
index 59a321425312c30f8d4fcb589bc3116db9810555..651f4fadc1cba5fd6c8fb2de543aabfb14b3496b 100644 (file)
@@ -1,5 +1,5 @@
 /* Get symbol version definition information at the given offset.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 GElf_Verdef *
-gelf_getverdef (data, offset, dst)
-     Elf_Data *data;
-     int offset;
-     GElf_Verdef *dst;
+gelf_getverdef (Elf_Data *data, int offset, GElf_Verdef *dst)
 {
   GElf_Verdef *result;
 
index 8ebf56ab323c52fefc45ee68b2cf8a5ed494fb17..e47fb0a227531a09a743b6e2fc1cb19d0c1ea3ee 100644 (file)
@@ -1,5 +1,5 @@
 /* Get additional required symbol version information at the given offset.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 GElf_Vernaux *
-gelf_getvernaux (data, offset, dst)
-     Elf_Data *data;
-     int offset;
-     GElf_Vernaux *dst;
+gelf_getvernaux (Elf_Data *data, int offset, GElf_Vernaux *dst)
 {
   GElf_Vernaux *result;
 
index 95fd11fb132896e2b3d31ecdb04a116dab611ae2..c1f5d3409fcaf91c514a7dc7f6f19017ee4ee845 100644 (file)
@@ -1,5 +1,5 @@
 /* Get required symbol version information at the given offset.
-   Copyright (C) 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 GElf_Verneed *
-gelf_getverneed (data, offset, dst)
-     Elf_Data *data;
-     int offset;
-     GElf_Verneed *dst;
+gelf_getverneed (Elf_Data *data, int offset, GElf_Verneed *dst)
 {
   GElf_Verneed *result;
 
index fe8dc62bc5bc169b91c909330e42b7141b7b5715..68d23c72e9d13f8651dd26f65118766658db5082 100644 (file)
@@ -1,5 +1,5 @@
 /* Get symbol version information at the given index.
-   Copyright (C) 1999, 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 1999, 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1999.
 
 
 
 GElf_Versym *
-gelf_getversym (data, ndx, dst)
-     Elf_Data *data;
-     int ndx;
-     GElf_Versym *dst;
+gelf_getversym (Elf_Data *data, int ndx, GElf_Versym *dst)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index e9f7a58fb63c9d9f17236d3ef800faf19408cc3b..cfa80e1bd35a6200be9bbaa32fca96a2ab623432 100644 (file)
@@ -1,5 +1,5 @@
 /* Create new ELF header.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -38,9 +38,7 @@
 
 
 unsigned long int
-gelf_newehdr (elf, class)
-     Elf *elf;
-     int class;
+gelf_newehdr (Elf *elf, int class)
 {
   return (class == ELFCLASS32
          ? (unsigned long int) INTUSE(elf32_newehdr) (elf)
index b634037746e2dd55338b8c839e61df557d4191f2..4e95474e20ae8084e8b460b4170be0ee5e2492c5 100644 (file)
@@ -1,5 +1,5 @@
 /* Create new ELF program 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 <drepper@redhat.com>, 1998.
 
@@ -38,9 +38,7 @@
 
 
 unsigned long int
-gelf_newphdr (elf, phnum)
-     Elf *elf;
-     size_t phnum;
+gelf_newphdr ( Elf *elf, size_t phnum)
 {
   return (elf->class == ELFCLASS32
          ? (unsigned long int) INTUSE(elf32_newphdr) (elf, phnum)
index 62d12e419c3e447c192b07471ef38e8a8115258c..cf206f5beb2ea50732d10769c5f21a1d7dfd4c61 100644 (file)
@@ -1,5 +1,5 @@
 /* Create new ELF header.
-   Copyright (C) 2005 Red Hat, Inc.
+   Copyright (C) 2005, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2005.
 
@@ -38,9 +38,7 @@
 
 
 Elf_Scn *
-gelf_offscn (elf, offset)
-     Elf *elf;
-     GElf_Off offset;
+gelf_offscn (Elf *elf, GElf_Off offset)
 {
   if (elf->class == ELFCLASS32)
     {
index dd8f4726492f7675dbbee694e13bcc61b9f6dc1f..e4e5229c623fed70e9f514b736f412d56006c353 100644 (file)
@@ -1,5 +1,5 @@
 /* Update information in dynamic table at the given index.
-   Copyright (C) 2007 Red Hat, Inc.
+   Copyright (C) 2007, 2015 Red Hat, Inc.
    This file is part of elfutils.
 
    This file is free software; you can redistribute it and/or modify
 
 
 int
-gelf_update_auxv (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_auxv_t *src;
+gelf_update_auxv (Elf_Data *data, int ndx, GElf_auxv_t *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index 2eb526ec0fd4b686c1ff046733d520ef43d23f16..5c515d262660174a1ba7fcf7a806400a5ad7f76d 100644 (file)
@@ -1,5 +1,5 @@
 /* Update information in dynamic table at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 int
-gelf_update_dyn (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_Dyn *src;
+gelf_update_dyn (Elf_Data *data, int ndx, GElf_Dyn *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index 1c8c23da91309787eafa3d91ee34d03e9db10fd8..d0f235e8ea539813df499f4a6f9fabe624cc8f11 100644 (file)
@@ -1,5 +1,5 @@
 /* Update library in table at the given index.
-   Copyright (C) 2004, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2004, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2004.
 
 
 
 int
-gelf_update_lib (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_Lib *src;
+gelf_update_lib (Elf_Data *data, int ndx, GElf_Lib *src)
 {
   if (data == NULL)
     return 0;
index ad2ca6abcb4f51dd71eb0294f769b695c71f8c85..4190ee30d0a580d94bedea116ead525256e99df4 100644 (file)
@@ -1,5 +1,5 @@
 /* Update move structure at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 int
-gelf_update_move (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_Move *src;
+gelf_update_move (Elf_Data *data, int ndx, GElf_Move *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
 
index 278129cfc70d358242069a172b50916c34ce0e9c..0f47885776b802737930bfa2188cd79943947a8a 100644 (file)
@@ -1,5 +1,5 @@
 /* Update symbol information in symbol table at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 int
-gelf_update_sym (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_Sym *src;
+gelf_update_sym (Elf_Data *data, int ndx, GElf_Sym *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index 640a1ed26ba36e3977d00d2a4bafbc3196908714..6f7f30255a4fb4cab4af790e8c39da1b970a1d68 100644 (file)
@@ -1,5 +1,5 @@
 /* Update additional symbol information in symbol table at the given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 int
-gelf_update_syminfo (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_Syminfo *src;
+gelf_update_syminfo (Elf_Data *data, int ndx, GElf_Syminfo *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
   Elf_Scn *scn;
index 5e2c7f7035e647db32310cfad2030b8c640003c2..eb80afacba7490e8b0d57bb25b31ee057ff35a4a 100644 (file)
@@ -1,6 +1,6 @@
 /* Update symbol information and section index in symbol table at the
    given index.
-   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2000, 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 int
-gelf_update_symshndx (symdata, shndxdata, ndx, src, srcshndx)
-     Elf_Data *symdata;
-     Elf_Data *shndxdata;
-     int ndx;
-     GElf_Sym *src;
-     Elf32_Word srcshndx;
+gelf_update_symshndx (Elf_Data *symdata, Elf_Data *shndxdata, int ndx,
+                     GElf_Sym *src, Elf32_Word srcshndx)
 {
   Elf_Data_Scn *symdata_scn = (Elf_Data_Scn *) symdata;
   Elf_Data_Scn *shndxdata_scn = (Elf_Data_Scn *) shndxdata;
index b377d40a0e6a43ccc1fcbe50f72be96af655f944..f3554fdcb6e464737af2b35783abaf654030c814 100644 (file)
@@ -1,5 +1,5 @@
 /* Update additional symbol version definition information.
-   Copyright (C) 2001, 2002 Red Hat, Inc.
+   Copyright (C) 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
 
 
 int
-gelf_update_verdaux (data, offset, src)
-     Elf_Data *data;
-     int offset;
-     GElf_Verdaux *src;
+gelf_update_verdaux (Elf_Data *data, int offset, GElf_Verdaux *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
 
index d591a4f1fc2e709cf9f5d02656f74676d45af1f6..adb5db146a7a780da36a787daf4b99374faf214b 100644 (file)
@@ -1,5 +1,5 @@
 /* Update symbol version definition information.
-   Copyright (C) 2001, 2002 Red Hat, Inc.
+   Copyright (C) 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
 
 
 int
-gelf_update_verdef (data, offset, src)
-     Elf_Data *data;
-     int offset;
-     GElf_Verdef *src;
+gelf_update_verdef (Elf_Data *data, int offset, GElf_Verdef *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
 
index 1f691b0e2e53b21cfae4a141945fd25243c83d67..854afabbca4595f3661799ec6f4fdcac533dc6f8 100644 (file)
@@ -1,5 +1,5 @@
 /* Update additional required symbol version information.
-   Copyright (C) 2001, 2002 Red Hat, Inc.
+   Copyright (C) 2001, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
 
 
 int
-gelf_update_vernaux (data, offset, src)
-     Elf_Data *data;
-     int offset;
-     GElf_Vernaux *src;
+gelf_update_vernaux (Elf_Data *data, int offset, GElf_Vernaux *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
 
index 713c017147493e73a7670f222ed6a723ef64c135..bf5af5a305683dae79ece2c0bc005640891238f2 100644 (file)
@@ -1,5 +1,5 @@
 /* Update required symbol version information.
-   Copyright (C) 2001, 2002 Red Hat, Inc.
+   Copyright (C) 2001, 2002, 201r Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
 
 
 int
-gelf_update_verneed (data, offset, src)
-     Elf_Data *data;
-     int offset;
-     GElf_Verneed *src;
+gelf_update_verneed (Elf_Data *data, int offset, GElf_Verneed *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
 
index 03a3c5a146e09510cdb6ecafd80a77da44b92f0d..9949dffb03e085b47fa52087cfc3e0557c9285e9 100644 (file)
@@ -1,5 +1,5 @@
 /* Update symbol version information.
-   Copyright (C) 2001, 2002, 2005, 2009, 2014 Red Hat, Inc.
+   Copyright (C) 2001, 2002, 2005, 2009, 2014, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
 
 
 int
-gelf_update_versym (data, ndx, src)
-     Elf_Data *data;
-     int ndx;
-     GElf_Versym *src;
+gelf_update_versym (Elf_Data *data, int ndx, GElf_Versym *src)
 {
   Elf_Data_Scn *data_scn = (Elf_Data_Scn *) data;
 
index 3366bdcdae98854b76c871e20f554c33fc41d339..e26618050d67bc93fd85f6c92dfe703a00a801f7 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert from memory to file representation.  Generic ELF version.
-   Copyright (C) 2000, 2002 Red Hat, Inc.
+   Copyright (C) 2000, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 Elf_Data *
-gelf_xlatetof (elf, dest, src, encode)
-     Elf *elf;
-     Elf_Data *dest;
-     const Elf_Data * src;
-     unsigned int encode;
+gelf_xlatetof (Elf *elf, Elf_Data *dest, const Elf_Data * src,
+              unsigned int encode)
 {
   if (elf == NULL)
     return NULL;
index c3e812f0ee326db99fea7c62ad472397a7ca89a8..8499c71175fbe521f6402d15c468fc72f9238074 100644 (file)
@@ -1,5 +1,5 @@
 /* Convert from file to memory representation.  Generic ELF version.
-   Copyright (C) 2000, 2002 Red Hat, Inc.
+   Copyright (C) 2000, 2002, 2015 Red Hat, Inc.
    This file is part of elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2000.
 
 
 
 Elf_Data *
-gelf_xlatetom (elf, dest, src, encode)
-     Elf *elf;
-     Elf_Data *dest;
-     const Elf_Data * src;
-     unsigned int encode;
+gelf_xlatetom (Elf *elf, Elf_Data *dest, const Elf_Data * src,
+              unsigned int encode)
 {
   if (elf == NULL)
     return NULL;
index 238c4160f7474c10d97b0847ab3148c47cc35d87..49aa3f7e361cb33d8582595b10070d4b57a11164 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-22  Mark Wielaard  <mjw@redhat.com>
+
+       * strip.c (cleanup_debug): Remove old-style function definitions.
+
 2015-09-09  Chih-Hung Hsieh  <chh@google.com>
 
        * readelf.c (print_debug_exception_table): Initialize variable before
index 5e69334bf0e92422ecf8577bbdf7775d821bb26a..8b08d72d6d1f1af676c8cc0d9bdad5834677d685 100644 (file)
@@ -119,7 +119,7 @@ static int debug_fd = -1;
 static char *tmp_debug_fname = NULL;
 
 /* Close debug file descriptor, if opened. And remove temporary debug file.  */
-static void cleanup_debug ();
+static void cleanup_debug (void);
 
 #define INTERNAL_ERROR(fname) \
   do { \
@@ -2208,7 +2208,7 @@ cannot set access and modification date of '%s'"),
 }
 
 static void
-cleanup_debug ()
+cleanup_debug (void)
 {
   if (debug_fd >= 0)
     {