From d76c93e68c515908187cbf814d07867c23d867f0 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 8 Jul 1998 03:55:07 +0000 Subject: [PATCH] * 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. --- binutils/ChangeLog | 7 +++++++ binutils/readelf.c | 8 +++++--- 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 * 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]; -- 2.7.4