diff options
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 56 |
1 files changed, 19 insertions, 37 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 237f934..a6bb6e4 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -38,18 +38,17 @@ typedef long time_t; #endif #endif -static const char * endian_string PARAMS ((enum bfd_endian)); -static int display_target_list PARAMS ((void)); -static int display_info_table PARAMS ((int, int)); -static int display_target_tables PARAMS ((void)); +static const char * endian_string (enum bfd_endian); +static int display_target_list (void); +static int display_info_table (int, int); +static int display_target_tables (void); /* Error reporting. */ char *program_name; void -bfd_nonfatal (string) - const char *string; +bfd_nonfatal (const char *string) { const char *errmsg = bfd_errmsg (bfd_get_error ()); @@ -60,17 +59,14 @@ bfd_nonfatal (string) } void -bfd_fatal (string) - const char *string; +bfd_fatal (const char *string) { bfd_nonfatal (string); xexit (1); } void -report (format, args) - const char * format; - va_list args; +report (const char * format, va_list args) { fprintf (stderr, "%s: ", program_name); vfprintf (stderr, format, args); @@ -104,7 +100,7 @@ non_fatal VPARAMS ((const char *format, ...)) different target. */ void -set_default_bfd_target () +set_default_bfd_target (void) { /* The macro TARGET is defined by Makefile. */ const char *target = TARGET; @@ -119,8 +115,7 @@ set_default_bfd_target () the possible matching targets. */ void -list_matching_formats (p) - char **p; +list_matching_formats (char **p) { fprintf (stderr, _("%s: Matching formats:"), program_name); while (*p) @@ -131,9 +126,7 @@ list_matching_formats (p) /* List the supported targets. */ void -list_supported_targets (name, f) - const char *name; - FILE *f; +list_supported_targets (const char *name, FILE *f) { int t; const char **targ_names = bfd_target_list (); @@ -152,9 +145,7 @@ list_supported_targets (name, f) /* List the supported architectures. */ void -list_supported_architectures (name, f) - const char *name; - FILE *f; +list_supported_architectures (const char *name, FILE *f) { const char **arch; @@ -172,8 +163,7 @@ list_supported_architectures (name, f) #define LONGEST_ARCH sizeof ("powerpc:common") static const char * -endian_string (endian) - enum bfd_endian endian; +endian_string (enum bfd_endian endian) { switch (endian) { @@ -187,7 +177,7 @@ endian_string (endian) by its endianness and the architectures it supports. */ static int -display_target_list () +display_target_list (void) { char *dummy_name; int t; @@ -239,9 +229,7 @@ display_target_list () architectures down). */ static int -display_info_table (first, last) - int first; - int last; +display_info_table (int first, int last) { int t; int a; @@ -316,7 +304,7 @@ display_info_table (first, last) BFD has been configured to support. */ static int -display_target_tables () +display_target_tables (void) { int t; int columns; @@ -355,7 +343,7 @@ display_target_tables () } int -display_info () +display_info (void) { printf (_("BFD header file version %s\n"), BFD_VERSION_STRING); if (! display_target_list () || ! display_target_tables ()) @@ -369,10 +357,7 @@ display_info () Mode User\tGroup\tSize\tDate Name */ void -print_arelt_descr (file, abfd, verbose) - FILE *file; - bfd *abfd; - bfd_boolean verbose; +print_arelt_descr (FILE *file, bfd *abfd, bfd_boolean verbose) { struct stat buf; @@ -403,8 +388,7 @@ print_arelt_descr (file, abfd, verbose) /* Return the name of a temporary file in the same directory as FILENAME. */ char * -make_tempname (filename) - char *filename; +make_tempname (char *filename) { static char template[] = "stXXXXXX"; char *tmpname; @@ -454,9 +438,7 @@ make_tempname (filename) parsed. */ bfd_vma -parse_vma (s, arg) - const char *s; - const char *arg; +parse_vma (const char *s, const char *arg) { bfd_vma ret; const char *end; |