aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1998-07-08 03:55:07 +0000
committerJeff Law <law@redhat.com>1998-07-08 03:55:07 +0000
commitd76c93e68c515908187cbf814d07867c23d867f0 (patch)
tree7ae0f40bf1dbc907789222b24aa5830ea985baca /binutils
parent3f4444e020f7735e060e92460c534e6e0b7b00d0 (diff)
downloadgdb-d76c93e68c515908187cbf814d07867c23d867f0.zip
gdb-d76c93e68c515908187cbf814d07867c23d867f0.tar.gz
gdb-d76c93e68c515908187cbf814d07867c23d867f0.tar.bz2
* readelf.c (byte_get): Use PARAMS in prototype.
(error): Make it work with non-ANSI compilers. (warn): Likewise. (get_ver_flags): Don't use an ANSI prototype in the definition.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog7
-rw-r--r--binutils/readelf.c8
2 files changed, 12 insertions, 3 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 3cd7332..e66f269 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,10 @@
+Tue Jul 7 21:48:54 1998 Jeffrey A Law (law@cygnus.com)
+
+ * readelf.c (byte_get): Use PARAMS in prototype.
+ (error): Make it work with non-ANSI compilers.
+ (warn): Likewise.
+ (get_ver_flags): Don't use an ANSI prototype in the definition.
+
Tue Jul 7 13:26:13 1998 Ian Lance Taylor <ian@cygnus.com>
* objcopy.c (filter_bytes): Set size correctly if the size of the
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 11bf26a..9793562 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -68,7 +68,7 @@ int do_header;
int do_dump;
int do_version;
-static unsigned long int (* byte_get)(unsigned char *, int);
+static unsigned long int (* byte_get) PARAMS ((unsigned char *, int));
#define NUM_DUMP_SECTS 100
char dump_sects [NUM_DUMP_SECTS];
@@ -191,6 +191,7 @@ warn (const char * message, ...)
#else
static void
error (va_alist)
+ va_dcl
{
char * message;
va_list args;
@@ -205,7 +206,7 @@ error (va_alist)
static void
warn (va_alist)
- va_dcl;
+ va_dcl
{
char * message;
va_list args;
@@ -2011,7 +2012,8 @@ process_dynamic_segment (file)
}
static char *
-get_ver_flags (unsigned short flags)
+get_ver_flags (flags)
+ unsigned short flags;
{
static char buff [32];