* readelf.c (byte_get): Use PARAMS in prototype.
authorJeff Law <law@redhat.com>
Wed, 8 Jul 1998 03:55:07 +0000 (03:55 +0000)
committerJeff Law <law@redhat.com>
Wed, 8 Jul 1998 03:55:07 +0000 (03:55 +0000)
        (error): Make it work with non-ANSI compilers.
        (warn): Likewise.
        (get_ver_flags): Don't use an ANSI prototype in the definition.

binutils/ChangeLog
binutils/readelf.c

index 3cd7332..e66f269 100644 (file)
@@ -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
index 11bf26a..9793562 100644 (file)
@@ -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];