* 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.
This commit is contained in:
parent
3f4444e020
commit
d76c93e68c
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in New Issue